From f04aa0754906369ecde089ac39612045a071e0f4 Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Thu, 12 Oct 2023 15:55:10 +0800 Subject: [PATCH] add search endpoint for listing, add grpc hooks Signed-off-by: Yee Hing Tong --- flyteartifacts/cmd/main.go | 3 +- flyteartifacts/go.mod | 59 +- flyteartifacts/go.sum | 241 +++++- flyteartifacts/pkg/server/server.go | 53 +- .../flyteidl/artifact/artifacts.grpc.pb.cc | 60 +- .../flyteidl/artifact/artifacts.grpc.pb.h | 271 ++++-- .../pb-cpp/flyteidl/artifact/artifacts.pb.cc | 661 ++++++++++----- .../pb-cpp/flyteidl/artifact/artifacts.pb.h | 312 +++++-- .../pb-go/flyteidl/artifact/artifacts.pb.go | 292 ++++--- .../flyteidl/artifact/artifacts.pb.gw.go | 538 ++++++++++++ .../artifact/artifacts.pb.validate.go | 70 +- .../flyteidl/artifact/artifacts.swagger.json | 599 +++++++++++++- .../pb-java/flyteidl/artifact/Artifacts.java | 776 +++++++++++++----- flyteidl/gen/pb-js/flyteidl.d.ts | 111 ++- flyteidl/gen/pb-js/flyteidl.js | 208 +++-- .../flyteidl/artifact/artifacts_pb2.py | 99 +-- .../flyteidl/artifact/artifacts_pb2.pyi | 15 +- .../flyteidl/artifact/artifacts_pb2_grpc.py | 39 +- flyteidl/gen/pb_rust/flyteidl.artifact.rs | 10 +- .../protos/flyteidl/artifact/artifacts.proto | 34 +- 20 files changed, 3528 insertions(+), 923 deletions(-) create mode 100644 flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go diff --git a/flyteartifacts/cmd/main.go b/flyteartifacts/cmd/main.go index bcddb89ccf..82af30b2dc 100644 --- a/flyteartifacts/cmd/main.go +++ b/flyteartifacts/cmd/main.go @@ -3,6 +3,7 @@ package main import ( "context" sharedCmd "github.com/flyteorg/flyte/flyteartifacts/cmd/shared" + "github.com/flyteorg/flyte/flyteartifacts/pkg/server" "github.com/flyteorg/flyte/flytestdlib/logger" _ "net/http/pprof" // Required to serve application. @@ -80,7 +81,7 @@ import ( func main() { ctx := context.Background() logger.Infof(ctx, "Beginning Flyte Artifacts Service") - rootCmd := sharedCmd.NewRootCmd("artifacts") + rootCmd := sharedCmd.NewRootCmd("artifacts", server.GrpcRegistrationHook, server.HttpRegistrationHook) //if err := RootCmd.ExecuteC(); err != nil { // fmt.Println(err) // panic(err) diff --git a/flyteartifacts/go.mod b/flyteartifacts/go.mod index 93cdcdfc3f..fd058dcf70 100644 --- a/flyteartifacts/go.mod +++ b/flyteartifacts/go.mod @@ -3,9 +3,12 @@ module github.com/flyteorg/flyte/flyteartifacts go 1.19 require ( + github.com/flyteorg/flyte/flyteidl v0.0.0-00010101000000-000000000000 github.com/flyteorg/flyte/flytestdlib v1.9.5 - github.com/flyteorg/flyteidl v1.5.14-0.20230928230632-4854ce7ad143 - github.com/golang/glog v1.1.0 + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 + github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 + github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.4.0 github.com/spf13/pflag v1.0.5 google.golang.org/grpc v1.56.1 @@ -13,32 +16,82 @@ require ( ) require ( + cloud.google.com/go v0.110.0 // indirect + cloud.google.com/go/compute v1.19.1 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.13.0 // indirect + cloud.google.com/go/storage v1.28.1 // indirect + github.com/Azure/azure-sdk-for-go v63.4.0+incompatible // indirect + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.2 // indirect + github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.0 // indirect + github.com/Azure/go-autorest v14.2.0+incompatible // indirect + github.com/Azure/go-autorest/autorest v0.11.27 // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect + github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect + github.com/Azure/go-autorest/logger v0.2.1 // indirect + github.com/Azure/go-autorest/tracing v0.6.0 // indirect + github.com/aws/aws-sdk-go v1.44.2 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/coocood/freecache v1.1.1 // indirect github.com/fatih/color v1.13.0 // indirect + github.com/flyteorg/stow v0.3.7 // indirect github.com/fsnotify/fsnotify v1.5.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect + github.com/go-logr/logr v0.4.0 // indirect + github.com/gofrs/uuid v4.2.0+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.1 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.3 // indirect + github.com/google/go-cmp v0.5.9 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect + github.com/googleapis/gax-go/v2 v2.7.1 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/magiconair/properties v1.8.6 // indirect github.com/mattn/go-colorable v0.1.12 // indirect github.com/mattn/go-isatty v0.0.14 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/ncw/swift v1.0.53 // indirect github.com/pelletier/go-toml v1.9.4 // indirect github.com/pelletier/go-toml/v2 v2.0.0-beta.8 // indirect - github.com/pkg/errors v0.9.1 // indirect + github.com/prometheus/client_golang v1.12.1 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/prometheus/common v0.32.1 // indirect + github.com/prometheus/procfs v0.7.3 // indirect github.com/sirupsen/logrus v1.7.0 // indirect github.com/spf13/afero v1.9.2 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/viper v1.11.0 // indirect github.com/subosito/gotenv v1.2.0 // indirect + go.opencensus.io v0.24.0 // indirect + golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f // indirect golang.org/x/net v0.9.0 // indirect + golang.org/x/oauth2 v0.7.0 // indirect golang.org/x/sys v0.7.0 // indirect golang.org/x/text v0.9.0 // indirect + golang.org/x/time v0.1.0 // indirect + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + google.golang.org/api v0.114.0 // indirect + google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect google.golang.org/protobuf v1.30.0 // indirect gopkg.in/ini.v1 v1.66.4 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect k8s.io/apimachinery v0.20.2 // indirect + k8s.io/client-go v0.0.0-20210217172142-7279fc64d847 // indirect + k8s.io/klog/v2 v2.5.0 // indirect +) + +replace ( + github.com/flyteorg/flyte/flyteidl => ../flyteidl + github.com/flyteorg/flyte/flytestdlib => ../flytestdlib + github.com/robfig/cron/v3 => github.com/unionai/cron/v3 v3.0.2-0.20220915080349-5790c370e63a ) diff --git a/flyteartifacts/go.sum b/flyteartifacts/go.sum index 3b6953d36c..59673d7343 100644 --- a/flyteartifacts/go.sum +++ b/flyteartifacts/go.sum @@ -17,14 +17,23 @@ cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHOb cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= +cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/compute v1.19.1 h1:am86mquDUgjGNWxiGn+5PGLbmgiWXlE/yNWpIpNvuXY= +cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= +cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= +cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -35,14 +44,67 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.28.1 h1:F5QDG5ChchaAVQhINh24U99OWHURqrW8OmQcGKXcbgI= +cloud.google.com/go/storage v1.28.1/go.mod h1:Qnisd4CqDdo6BGs2AD5LLnEsmSQ80wQ5ogcBBKhU86Y= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/Azure/azure-sdk-for-go v63.4.0+incompatible h1:fle3M5Q7vr8auaiPffKyUQmLbvYeqpw30bKU6PrWJFo= +github.com/Azure/azure-sdk-for-go v63.4.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.1 h1:3CVsSo4mp8NDWO11tHzN/mdo2zP0CtaSK5IcwBjfqRA= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.1/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.2 h1:Px2KVERcYEg2Lv25AqC2hVr0xUWaq94wuEObLIkYzmA= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.2/go.mod h1:CdSJQNNzZhCkwDaV27XV1w48ZBPtxe7mlrZAsPNxD5g= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.0 h1:0nJeKDmB7a1a8RDMjTltahlPsaNlWjq/LpkZleSwINk= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.0/go.mod h1:mbwxKc/fW+IkF0GG591MuXw0KuEQBDkeRoZ9vmVJPxg= +github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= +github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= +github.com/Azure/go-autorest/autorest v0.11.27 h1:F3R3q42aWytozkV8ihzcgMO4OA4cuqr3bNlsEuF6//A= +github.com/Azure/go-autorest/autorest v0.11.27/go.mod h1:7l8ybrIdUmGqZMTD0sRtAr8NvbHjfofbf8RSP2q7w7U= +github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= +github.com/Azure/go-autorest/autorest/adal v0.9.18 h1:kLnPsRjzZZUF3K5REu/Kc+qMQrvuza2bwSnNdhmzLfQ= +github.com/Azure/go-autorest/autorest/adal v0.9.18/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= +github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= +github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= +github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/mocks v0.4.2 h1:PGN4EDXnuQbojHbU0UWoNvmu9AGVwYHG9/fkDYhtAfw= +github.com/Azure/go-autorest/autorest/mocks v0.4.2/go.mod h1:Vy7OitM9Kei0i1Oj+LvyAWMXJHeKH1MVlzFugfVrmyU= +github.com/Azure/go-autorest/autorest/to v0.4.0 h1:oXVqrxakqqV1UZdSazDOPOLvOIz+XA683u8EctwboHk= +github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= +github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg= +github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= +github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= +github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= +github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= +github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/aws/aws-sdk-go v1.44.2 h1:5VBk5r06bgxgRKVaUtm1/4NT/rtrnH2E4cnAYv5zgQc= +github.com/aws/aws-sdk-go v1.44.2/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 h1:SKI1/fuSdodxmNNyVBR8d7X/HuLnRpvvFO0AgyQk764= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= @@ -50,10 +112,14 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/coocood/freecache v1.1.1 h1:uukNF7QKCZEdZ9gAV7WQzvh0SbjwdMF6m3x3rxEkaPc= +github.com/coocood/freecache v1.1.1/go.mod h1:OKrEjkGVoxZhyWAJoeFi5BMLUJm2Tit0kpGkIr7NGYY= github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= +github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= @@ -67,10 +133,9 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7 github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/flyteorg/flyte/flytestdlib v1.9.5 h1:3035vQzeSI8lBR7iB889E+Yn8jksh22Wvdu+zCId5SE= -github.com/flyteorg/flyte/flytestdlib v1.9.5/go.mod h1:ZnpzKetFifz05KvjX4/Au23m3gdTkYHnN/MvVZvvJYk= -github.com/flyteorg/flyteidl v1.5.14-0.20230928230632-4854ce7ad143 h1:H8SEoRv2bgdXPIAxQS2iHUkmd8YW38uTUtfl3a4LKu4= -github.com/flyteorg/flyteidl v1.5.14-0.20230928230632-4854ce7ad143/go.mod h1:EtE/muM2lHHgBabjYcxqe9TWeJSL0kXwbI0RgVwI4Og= +github.com/flyteorg/stow v0.3.7 h1:Cx7j8/Ux6+toD5hp5fy++927V+yAcAttDeQAlUD/864= +github.com/flyteorg/stow v0.3.7/go.mod h1:5dfBitPM004dwaZdoVylVjxFT4GWAgI0ghAndhNUzCo= +github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= @@ -81,8 +146,16 @@ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeME github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-logr/logr v0.4.0 h1:K7/B1jt6fIBQVd4Owv2MqGQClcgf0R266+7C/QjRcLc= +github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= @@ -90,13 +163,23 @@ github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL9 github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= +github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= +github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.4.1 h1:pC5DB52sCeK48Wlb9oPcdhnjkz1TKt1D/P7WKJ0kUcQ= +github.com/golang-jwt/jwt/v4 v4.4.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= -github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= @@ -119,6 +202,7 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= @@ -131,14 +215,18 @@ github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= @@ -152,10 +240,24 @@ github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLe github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= +github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6cvPr8A= +github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= @@ -163,22 +265,37 @@ github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= @@ -189,34 +306,76 @@ github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= +github.com/ncw/swift v1.0.53 h1:luHjjTNtekIEvHg5KdAFIBaH7bWfNkefwFnpDffSIks= +github.com/ncw/swift v1.0.53/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/pelletier/go-toml v1.9.4 h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM= github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.0.0-beta.8 h1:dy81yyLYJDwMTifq24Oi/IslOslRrDSb3jwDggjz3Z0= github.com/pelletier/go-toml/v2 v2.0.0-beta.8/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= @@ -231,7 +390,10 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.11.0 h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44= github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUsX7Zk= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -239,6 +401,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= @@ -252,14 +416,26 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f h1:OeJjE6G4dgCY4PIXvIRQbE8+RX+uXZyGhUy/ksMGJoc= +golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -296,6 +472,7 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -322,12 +499,16 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -339,6 +520,9 @@ golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g= +golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -350,10 +534,13 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -365,6 +552,7 @@ golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -378,6 +566,8 @@ golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -386,25 +576,37 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA= +golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -422,6 +624,7 @@ golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgw golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -444,6 +647,7 @@ golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= @@ -452,12 +656,15 @@ golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -477,12 +684,15 @@ google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz513 google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.114.0 h1:1xQPji6cO2E2vLiI+C/XiFAnsn1WV3mjaEwGLhi3grE= +google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= @@ -505,8 +715,10 @@ google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= @@ -535,6 +747,7 @@ google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3Iji google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= @@ -554,6 +767,7 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= @@ -566,10 +780,15 @@ gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -579,15 +798,23 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +k8s.io/api v0.0.0-20210217171935-8e2decd92398/go.mod h1:60tmSUpHxGPFerNHbo/ayI2lKxvtrhbxFyXuEIWJd78= +k8s.io/apimachinery v0.0.0-20210217011835-527a61b4dffe/go.mod h1:Z7ps/g0rjlTeMstYrMOUttJfT2Gg34DEaG/f2PYLCWY= k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg= k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= +k8s.io/client-go v0.0.0-20210217172142-7279fc64d847 h1:d+LBRNY3c/KGp7lDblRlUJkayx4Vla7WUTIazoGMdYo= +k8s.io/client-go v0.0.0-20210217172142-7279fc64d847/go.mod h1:q0EaghmVye2uui19vxSZ2NG6ssgUWgjudO6vrwXneSI= k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= +k8s.io/klog/v2 v2.5.0 h1:8mOnjf1RmUPW6KRqQCfYSZq/K20Unmp3IhuZUhxl8KI= +k8s.io/klog/v2 v2.5.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= +k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= +sigs.k8s.io/structured-merge-diff/v4 v4.0.3/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/flyteartifacts/pkg/server/server.go b/flyteartifacts/pkg/server/server.go index 3227029725..bd490b3c54 100644 --- a/flyteartifacts/pkg/server/server.go +++ b/flyteartifacts/pkg/server/server.go @@ -1,15 +1,12 @@ package server import ( - "github.com/flyteorg/flyte/flyteartifacts/pkg/configuration" + "context" + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact" "github.com/flyteorg/flyte/flytestdlib/promutils" - "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/artifact" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/pkg/errors" "google.golang.org/grpc" - "net" - - "context" _ "net/http/pprof" // Required to serve application. ) @@ -23,34 +20,38 @@ func NewArtifactService() *ArtifactService { } func HttpRegistrationHook(ctx context.Context, gwmux *runtime.ServeMux, grpcAddress string, grpcConnectionOpts []grpc.DialOption, _ promutils.Scope) error { - //err := executionsvc.RegisterExecutionServiceHandlerFromEndpoint(ctx, gwmux, grpcAddress, grpcConnectionOpts) + err := artifact.RegisterArtifactRegistryHandlerFromEndpoint(ctx, gwmux, grpcAddress, grpcConnectionOpts) if err != nil { return errors.Wrap(err, "error registering execution service") } return nil } -func Serve(ctx context.Context, opts ...grpc.ServerOption) error { - var serverOpts []grpc.ServerOption - - cfg := configuration.ApplicationConfig.GetConfig().(*configuration.ApplicationConfiguration) +func GrpcRegistrationHook(ctx context.Context, server *grpc.Server, scope promutils.Scope) error { + serviceImpl := NewArtifactService() + artifact.RegisterArtifactRegistryServer(server, serviceImpl) - serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(3000000)) - serverOpts = append(serverOpts, opts...) - grpcServer := grpc.NewServer(serverOpts...) - server := NewArtifactService() - - artifact.RegisterArtifactRegistryServer(grpcServer, server) - - lis, err := net.Listen("tcp", "localhost:50051") - if err != nil { - return err - } - err = grpcServer.Serve(lis) - - return err + return nil } +//func Serve(ctx context.Context, opts ...grpc.ServerOption) error { +// var serverOpts []grpc.ServerOption +// +// cfg := configuration.ApplicationConfig.GetConfig().(*configuration.ApplicationConfiguration) +// +// serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(3000000)) +// serverOpts = append(serverOpts, opts...) +// grpcServer := grpc.NewServer(serverOpts...) +// +// lis, err := net.Listen("tcp", "localhost:50051") +// if err != nil { +// return err +// } +// err = grpcServer.Serve(lis) +// +// return err +//} + func (a *ArtifactService) CreateArtifact(ctx context.Context, request *artifact.CreateArtifactRequest) (*artifact.CreateArtifactResponse, error) { return &artifact.CreateArtifactResponse{}, nil } @@ -78,3 +79,7 @@ func (a *ArtifactService) RegisterProducer(ctx context.Context, request *artifac func (a *ArtifactService) RegisterConsumer(ctx context.Context, request *artifact.RegisterConsumerRequest) (*artifact.RegisterResponse, error) { return &artifact.RegisterResponse{}, nil } + +func (a *ArtifactService) SearchArtifacts(ctx context.Context, request *artifact.SearchArtifactsRequest) (*artifact.SearchArtifactsResponse, error) { + return &artifact.SearchArtifactsResponse{}, nil +} diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc index bb94168de8..6ce4ed9236 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc @@ -22,6 +22,7 @@ namespace artifact { static const char* ArtifactRegistry_method_names[] = { "/flyteidl.artifact.ArtifactRegistry/CreateArtifact", "/flyteidl.artifact.ArtifactRegistry/GetArtifact", + "/flyteidl.artifact.ArtifactRegistry/SearchArtifacts", "/flyteidl.artifact.ArtifactRegistry/CreateTrigger", "/flyteidl.artifact.ArtifactRegistry/DeleteTrigger", "/flyteidl.artifact.ArtifactRegistry/AddTag", @@ -38,11 +39,12 @@ std::unique_ptr< ArtifactRegistry::Stub> ArtifactRegistry::NewStub(const std::sh ArtifactRegistry::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) : channel_(channel), rpcmethod_CreateArtifact_(ArtifactRegistry_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetArtifact_(ArtifactRegistry_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateTrigger_(ArtifactRegistry_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteTrigger_(ArtifactRegistry_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AddTag_(ArtifactRegistry_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RegisterProducer_(ArtifactRegistry_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RegisterConsumer_(ArtifactRegistry_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SearchArtifacts_(ArtifactRegistry_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateTrigger_(ArtifactRegistry_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteTrigger_(ArtifactRegistry_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddTag_(ArtifactRegistry_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RegisterProducer_(ArtifactRegistry_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RegisterConsumer_(ArtifactRegistry_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ArtifactRegistry::Stub::CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::flyteidl::artifact::CreateArtifactResponse* response) { @@ -101,6 +103,34 @@ ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>* A return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, false); } +::grpc::Status ArtifactRegistry::Stub::SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SearchArtifacts_, context, request, response); +} + +void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, std::move(f)); +} + +void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, reactor); +} + +void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::AsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_SearchArtifacts_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::PrepareAsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_SearchArtifacts_, context, request, false); +} + ::grpc::Status ArtifactRegistry::Stub::CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::flyteidl::artifact::CreateTriggerResponse* response) { return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTrigger_, context, request, response); } @@ -255,25 +285,30 @@ ArtifactRegistry::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ArtifactRegistry_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>( + std::mem_fn(&ArtifactRegistry::Service::SearchArtifacts), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ArtifactRegistry_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>( std::mem_fn(&ArtifactRegistry::Service::CreateTrigger), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[3], + ArtifactRegistry_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>( std::mem_fn(&ArtifactRegistry::Service::DeleteTrigger), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[4], + ArtifactRegistry_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>( std::mem_fn(&ArtifactRegistry::Service::AddTag), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[5], + ArtifactRegistry_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>( std::mem_fn(&ArtifactRegistry::Service::RegisterProducer), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[6], + ArtifactRegistry_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>( std::mem_fn(&ArtifactRegistry::Service::RegisterConsumer), this))); @@ -296,6 +331,13 @@ ::grpc::Status ArtifactRegistry::Service::GetArtifact(::grpc::ServerContext* con return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ArtifactRegistry::Service::SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status ArtifactRegistry::Service::CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) { (void) context; (void) request; diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h index 6df0363cae..2a641788a2 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h @@ -62,10 +62,13 @@ class ArtifactRegistry final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); } - // rpc ListArtifactNames (ListArtifactNamesRequest) returns (ListArtifactNamesResponse) {} - // - // rpc ListArtifacts (ListArtifactsRequest) returns (ListArtifactsResponse) {} - // + virtual ::grpc::Status SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncSearchArtifactsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncSearchArtifactsRaw(context, request, cq)); + } virtual ::grpc::Status CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::flyteidl::artifact::CreateTriggerResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>> AsyncCreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>>(AsyncCreateTriggerRaw(context, request, cq)); @@ -112,10 +115,10 @@ class ArtifactRegistry final { virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function) = 0; virtual void GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // rpc ListArtifactNames (ListArtifactNamesRequest) returns (ListArtifactNamesResponse) {} - // - // rpc ListArtifacts (ListArtifactsRequest) returns (ListArtifactsResponse) {} - // + virtual void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; + virtual void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; + virtual void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) = 0; virtual void CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) = 0; virtual void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; @@ -143,6 +146,8 @@ class ArtifactRegistry final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>* AsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>* PrepareAsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::DeleteTriggerResponse>* AsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -171,6 +176,13 @@ class ArtifactRegistry final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); } + ::grpc::Status SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncSearchArtifactsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncSearchArtifactsRaw(context, request, cq)); + } ::grpc::Status CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::flyteidl::artifact::CreateTriggerResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>> AsyncCreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>>(AsyncCreateTriggerRaw(context, request, cq)); @@ -217,6 +229,10 @@ class ArtifactRegistry final { void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function) override; void GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; + void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; + void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) override; void CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) override; void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; @@ -252,6 +268,8 @@ class ArtifactRegistry final { ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>* AsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>* PrepareAsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>* AsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) override; @@ -264,6 +282,7 @@ class ArtifactRegistry final { ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; const ::grpc::internal::RpcMethod rpcmethod_GetArtifact_; + const ::grpc::internal::RpcMethod rpcmethod_SearchArtifacts_; const ::grpc::internal::RpcMethod rpcmethod_CreateTrigger_; const ::grpc::internal::RpcMethod rpcmethod_DeleteTrigger_; const ::grpc::internal::RpcMethod rpcmethod_AddTag_; @@ -278,10 +297,7 @@ class ArtifactRegistry final { virtual ~Service(); virtual ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response); virtual ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response); - // rpc ListArtifactNames (ListArtifactNamesRequest) returns (ListArtifactNamesResponse) {} - // - // rpc ListArtifacts (ListArtifactsRequest) returns (ListArtifactsResponse) {} - // + virtual ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response); virtual ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response); virtual ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response); virtual ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response); @@ -329,12 +345,32 @@ class ArtifactRegistry final { } }; template + class WithAsyncMethod_SearchArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_SearchArtifacts() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_SearchArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchArtifacts(::grpc::ServerContext* context, ::flyteidl::artifact::SearchArtifactsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::SearchArtifactsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_CreateTrigger : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_CreateTrigger() { - ::grpc::Service::MarkMethodAsync(2); + ::grpc::Service::MarkMethodAsync(3); } ~WithAsyncMethod_CreateTrigger() override { BaseClassMustBeDerivedFromService(this); @@ -345,7 +381,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateTrigger(::grpc::ServerContext* context, ::flyteidl::artifact::CreateTriggerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::CreateTriggerResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -354,7 +390,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodAsync(3); + ::grpc::Service::MarkMethodAsync(4); } ~WithAsyncMethod_DeleteTrigger() override { BaseClassMustBeDerivedFromService(this); @@ -365,7 +401,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteTrigger(::grpc::ServerContext* context, ::flyteidl::artifact::DeleteTriggerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::DeleteTriggerResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -374,7 +410,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_AddTag() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(5); } ~WithAsyncMethod_AddTag() override { BaseClassMustBeDerivedFromService(this); @@ -385,7 +421,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestAddTag(::grpc::ServerContext* context, ::flyteidl::artifact::AddTagRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::AddTagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -394,7 +430,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_RegisterProducer() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_RegisterProducer() override { BaseClassMustBeDerivedFromService(this); @@ -405,7 +441,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRegisterProducer(::grpc::ServerContext* context, ::flyteidl::artifact::RegisterProducerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::RegisterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -414,7 +450,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_RegisterConsumer() override { BaseClassMustBeDerivedFromService(this); @@ -425,10 +461,10 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRegisterConsumer(::grpc::ServerContext* context, ::flyteidl::artifact::RegisterConsumerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::RegisterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateArtifact > > > > > > AsyncService; + typedef WithAsyncMethod_CreateArtifact > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateArtifact : public BaseClass { private: @@ -492,12 +528,43 @@ class ArtifactRegistry final { virtual void GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template + class ExperimentalWithCallbackMethod_SearchArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_SearchArtifacts() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::artifact::SearchArtifactsRequest* request, + ::flyteidl::artifact::SearchArtifactsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->SearchArtifacts(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_SearchArtifacts( + ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_SearchArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class ExperimentalWithCallbackMethod_CreateTrigger : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_CreateTrigger() { - ::grpc::Service::experimental().MarkMethodCallback(2, + ::grpc::Service::experimental().MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>( [this](::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, @@ -509,7 +576,7 @@ class ArtifactRegistry final { void SetMessageAllocatorFor_CreateTrigger( ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>*>( - ::grpc::Service::experimental().GetHandler(2)) + ::grpc::Service::experimental().GetHandler(3)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_CreateTrigger() override { @@ -528,7 +595,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_DeleteTrigger() { - ::grpc::Service::experimental().MarkMethodCallback(3, + ::grpc::Service::experimental().MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>( [this](::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, @@ -540,7 +607,7 @@ class ArtifactRegistry final { void SetMessageAllocatorFor_DeleteTrigger( ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>*>( - ::grpc::Service::experimental().GetHandler(3)) + ::grpc::Service::experimental().GetHandler(4)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_DeleteTrigger() override { @@ -559,7 +626,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_AddTag() { - ::grpc::Service::experimental().MarkMethodCallback(4, + ::grpc::Service::experimental().MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>( [this](::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, @@ -571,7 +638,7 @@ class ArtifactRegistry final { void SetMessageAllocatorFor_AddTag( ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>*>( - ::grpc::Service::experimental().GetHandler(4)) + ::grpc::Service::experimental().GetHandler(5)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_AddTag() override { @@ -590,7 +657,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_RegisterProducer() { - ::grpc::Service::experimental().MarkMethodCallback(5, + ::grpc::Service::experimental().MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>( [this](::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, @@ -602,7 +669,7 @@ class ArtifactRegistry final { void SetMessageAllocatorFor_RegisterProducer( ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>*>( - ::grpc::Service::experimental().GetHandler(5)) + ::grpc::Service::experimental().GetHandler(6)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_RegisterProducer() override { @@ -621,7 +688,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_RegisterConsumer() { - ::grpc::Service::experimental().MarkMethodCallback(6, + ::grpc::Service::experimental().MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>( [this](::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, @@ -633,7 +700,7 @@ class ArtifactRegistry final { void SetMessageAllocatorFor_RegisterConsumer( ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>*>( - ::grpc::Service::experimental().GetHandler(6)) + ::grpc::Service::experimental().GetHandler(7)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_RegisterConsumer() override { @@ -646,7 +713,7 @@ class ArtifactRegistry final { } virtual void RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateArtifact > > > > > > ExperimentalCallbackService; + typedef ExperimentalWithCallbackMethod_CreateArtifact > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateArtifact : public BaseClass { private: @@ -682,12 +749,29 @@ class ArtifactRegistry final { } }; template + class WithGenericMethod_SearchArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_SearchArtifacts() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_SearchArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_CreateTrigger : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_CreateTrigger() { - ::grpc::Service::MarkMethodGeneric(2); + ::grpc::Service::MarkMethodGeneric(3); } ~WithGenericMethod_CreateTrigger() override { BaseClassMustBeDerivedFromService(this); @@ -704,7 +788,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodGeneric(3); + ::grpc::Service::MarkMethodGeneric(4); } ~WithGenericMethod_DeleteTrigger() override { BaseClassMustBeDerivedFromService(this); @@ -721,7 +805,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_AddTag() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(5); } ~WithGenericMethod_AddTag() override { BaseClassMustBeDerivedFromService(this); @@ -738,7 +822,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_RegisterProducer() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_RegisterProducer() override { BaseClassMustBeDerivedFromService(this); @@ -755,7 +839,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_RegisterConsumer() override { BaseClassMustBeDerivedFromService(this); @@ -807,12 +891,32 @@ class ArtifactRegistry final { } }; template + class WithRawMethod_SearchArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_SearchArtifacts() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_SearchArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSearchArtifacts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_CreateTrigger : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_CreateTrigger() { - ::grpc::Service::MarkMethodRaw(2); + ::grpc::Service::MarkMethodRaw(3); } ~WithRawMethod_CreateTrigger() override { BaseClassMustBeDerivedFromService(this); @@ -823,7 +927,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCreateTrigger(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -832,7 +936,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodRaw(3); + ::grpc::Service::MarkMethodRaw(4); } ~WithRawMethod_DeleteTrigger() override { BaseClassMustBeDerivedFromService(this); @@ -843,7 +947,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteTrigger(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -852,7 +956,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_AddTag() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(5); } ~WithRawMethod_AddTag() override { BaseClassMustBeDerivedFromService(this); @@ -863,7 +967,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestAddTag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -872,7 +976,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_RegisterProducer() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_RegisterProducer() override { BaseClassMustBeDerivedFromService(this); @@ -883,7 +987,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRegisterProducer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -892,7 +996,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_RegisterConsumer() override { BaseClassMustBeDerivedFromService(this); @@ -903,7 +1007,7 @@ class ArtifactRegistry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRegisterConsumer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -957,12 +1061,37 @@ class ArtifactRegistry final { virtual void GetArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template + class ExperimentalWithRawCallbackMethod_SearchArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_SearchArtifacts() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->SearchArtifacts(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_SearchArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SearchArtifacts(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class ExperimentalWithRawCallbackMethod_CreateTrigger : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_CreateTrigger() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, + ::grpc::Service::experimental().MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -987,7 +1116,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_DeleteTrigger() { - ::grpc::Service::experimental().MarkMethodRawCallback(3, + ::grpc::Service::experimental().MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -1012,7 +1141,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_AddTag() { - ::grpc::Service::experimental().MarkMethodRawCallback(4, + ::grpc::Service::experimental().MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -1037,7 +1166,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_RegisterProducer() { - ::grpc::Service::experimental().MarkMethodRawCallback(5, + ::grpc::Service::experimental().MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -1062,7 +1191,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_RegisterConsumer() { - ::grpc::Service::experimental().MarkMethodRawCallback(6, + ::grpc::Service::experimental().MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -1122,12 +1251,32 @@ class ArtifactRegistry final { virtual ::grpc::Status StreamedGetArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::GetArtifactRequest,::flyteidl::artifact::GetArtifactResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_SearchArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_SearchArtifacts() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>(std::bind(&WithStreamedUnaryMethod_SearchArtifacts::StreamedSearchArtifacts, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_SearchArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSearchArtifacts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::SearchArtifactsRequest,::flyteidl::artifact::SearchArtifactsResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_CreateTrigger : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_CreateTrigger() { - ::grpc::Service::MarkMethodStreamed(2, + ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>(std::bind(&WithStreamedUnaryMethod_CreateTrigger::StreamedCreateTrigger, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_CreateTrigger() override { @@ -1147,7 +1296,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodStreamed(3, + ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>(std::bind(&WithStreamedUnaryMethod_DeleteTrigger::StreamedDeleteTrigger, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_DeleteTrigger() override { @@ -1167,7 +1316,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_AddTag() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>(std::bind(&WithStreamedUnaryMethod_AddTag::StreamedAddTag, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_AddTag() override { @@ -1187,7 +1336,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_RegisterProducer() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>(std::bind(&WithStreamedUnaryMethod_RegisterProducer::StreamedRegisterProducer, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_RegisterProducer() override { @@ -1207,7 +1356,7 @@ class ArtifactRegistry final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>(std::bind(&WithStreamedUnaryMethod_RegisterConsumer::StreamedRegisterConsumer, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_RegisterConsumer() override { @@ -1221,9 +1370,9 @@ class ArtifactRegistry final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedRegisterConsumer(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::RegisterConsumerRequest,::flyteidl::artifact::RegisterResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > StreamedService; }; } // namespace artifact diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc index 927d1f6ba5..e9983e019f 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc @@ -71,14 +71,14 @@ class ListArtifactNamesResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ListArtifactNamesResponse_default_instance_; -class ListArtifactsRequestDefaultTypeInternal { +class SearchArtifactsRequestDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListArtifactsRequest_default_instance_; -class ListArtifactsResponseDefaultTypeInternal { + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SearchArtifactsRequest_default_instance_; +class SearchArtifactsResponseDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListArtifactsResponse_default_instance_; + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SearchArtifactsResponse_default_instance_; class AddTagRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -264,34 +264,34 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_ListArtifactNamesResponse_flyt {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; -static void InitDefaultsListArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto() { +static void InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::artifact::_ListArtifactsRequest_default_instance_; - new (ptr) ::flyteidl::artifact::ListArtifactsRequest(); + void* ptr = &::flyteidl::artifact::_SearchArtifactsRequest_default_instance_; + new (ptr) ::flyteidl::artifact::SearchArtifactsRequest(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::artifact::ListArtifactsRequest::InitAsDefaultInstance(); + ::flyteidl::artifact::SearchArtifactsRequest::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ListArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { +::google::protobuf::internal::SCCInfo<1> scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; -static void InitDefaultsListArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto() { +static void InitDefaultsSearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::flyteidl::artifact::_ListArtifactsResponse_default_instance_; - new (ptr) ::flyteidl::artifact::ListArtifactsResponse(); + void* ptr = &::flyteidl::artifact::_SearchArtifactsResponse_default_instance_; + new (ptr) ::flyteidl::artifact::SearchArtifactsResponse(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::flyteidl::artifact::ListArtifactsResponse::InitAsDefaultInstance(); + ::flyteidl::artifact::SearchArtifactsResponse::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ListArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { +::google::protobuf::internal::SCCInfo<1> scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; static void InitDefaultsAddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto() { @@ -467,8 +467,8 @@ void InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactNamesRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactNamesResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_AddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_AddTagResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_CreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); @@ -561,17 +561,20 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2ep ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactNamesResponse, artifact_keys_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactsRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactsRequest, artifact_key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, artifact_key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, limit_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactsResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ListArtifactsResponse, artifacts_), + PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsResponse, artifacts_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::AddTagRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -649,19 +652,19 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 54, -1, sizeof(::flyteidl::artifact::GetArtifactResponse)}, { 60, -1, sizeof(::flyteidl::artifact::ListArtifactNamesRequest)}, { 67, -1, sizeof(::flyteidl::artifact::ListArtifactNamesResponse)}, - { 73, -1, sizeof(::flyteidl::artifact::ListArtifactsRequest)}, - { 79, -1, sizeof(::flyteidl::artifact::ListArtifactsResponse)}, - { 85, -1, sizeof(::flyteidl::artifact::AddTagRequest)}, - { 93, -1, sizeof(::flyteidl::artifact::AddTagResponse)}, - { 98, -1, sizeof(::flyteidl::artifact::CreateTriggerRequest)}, - { 104, -1, sizeof(::flyteidl::artifact::CreateTriggerResponse)}, - { 109, -1, sizeof(::flyteidl::artifact::DeleteTriggerRequest)}, - { 115, -1, sizeof(::flyteidl::artifact::DeleteTriggerResponse)}, - { 120, -1, sizeof(::flyteidl::artifact::ArtifactProducer)}, - { 127, -1, sizeof(::flyteidl::artifact::RegisterProducerRequest)}, - { 133, -1, sizeof(::flyteidl::artifact::ArtifactConsumer)}, - { 140, -1, sizeof(::flyteidl::artifact::RegisterConsumerRequest)}, - { 146, -1, sizeof(::flyteidl::artifact::RegisterResponse)}, + { 73, -1, sizeof(::flyteidl::artifact::SearchArtifactsRequest)}, + { 82, -1, sizeof(::flyteidl::artifact::SearchArtifactsResponse)}, + { 88, -1, sizeof(::flyteidl::artifact::AddTagRequest)}, + { 96, -1, sizeof(::flyteidl::artifact::AddTagResponse)}, + { 101, -1, sizeof(::flyteidl::artifact::CreateTriggerRequest)}, + { 107, -1, sizeof(::flyteidl::artifact::CreateTriggerResponse)}, + { 112, -1, sizeof(::flyteidl::artifact::DeleteTriggerRequest)}, + { 118, -1, sizeof(::flyteidl::artifact::DeleteTriggerResponse)}, + { 123, -1, sizeof(::flyteidl::artifact::ArtifactProducer)}, + { 130, -1, sizeof(::flyteidl::artifact::RegisterProducerRequest)}, + { 136, -1, sizeof(::flyteidl::artifact::ArtifactConsumer)}, + { 143, -1, sizeof(::flyteidl::artifact::RegisterConsumerRequest)}, + { 149, -1, sizeof(::flyteidl::artifact::RegisterResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -674,8 +677,8 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::artifact::_GetArtifactResponse_default_instance_), reinterpret_cast(&::flyteidl::artifact::_ListArtifactNamesRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_ListArtifactNamesResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ListArtifactsRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ListArtifactsResponse_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_SearchArtifactsRequest_default_instance_), + reinterpret_cast(&::flyteidl::artifact::_SearchArtifactsResponse_default_instance_), reinterpret_cast(&::flyteidl::artifact::_AddTagRequest_default_instance_), reinterpret_cast(&::flyteidl::artifact::_AddTagResponse_default_instance_), reinterpret_cast(&::flyteidl::artifact::_CreateTriggerRequest_default_instance_), @@ -698,92 +701,114 @@ ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_fl const char descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto[] = "\n!flyteidl/artifact/artifacts.proto\022\021fly" "teidl.artifact\032\031google/protobuf/any.prot" - "o\032 flyteidl/admin/launch_plan.proto\032\034fly" - "teidl/core/literals.proto\032\031flyteidl/core" - "/types.proto\032\036flyteidl/core/identifier.p" - "roto\032\037flyteidl/core/artifact_id.proto\032\035f" - "lyteidl/core/interface.proto\"w\n\010Artifact" - "\022.\n\013artifact_id\030\001 \001(\0132\031.flyteidl.core.Ar" - "tifactID\022-\n\004spec\030\002 \001(\0132\037.flyteidl.artifa" - "ct.ArtifactSpec\022\014\n\004tags\030\003 \003(\t\"\227\002\n\025Create" - "ArtifactRequest\0220\n\014artifact_key\030\001 \001(\0132\032." - "flyteidl.core.ArtifactKey\022\017\n\007version\030\003 \001" - "(\t\022-\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Art" - "ifactSpec\022L\n\npartitions\030\004 \003(\01328.flyteidl" - ".artifact.CreateArtifactRequest.Partitio" - "nsEntry\022\013\n\003tag\030\005 \001(\t\0321\n\017PartitionsEntry\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\352\002\n\014Arti" - "factSpec\022%\n\005value\030\001 \001(\0132\026.flyteidl.core." - "Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.Li" - "teralType\022>\n\016task_execution\030\005 \001(\0132&.flyt" - "eidl.core.TaskExecutionIdentifier\022=\n\texe" - "cution\030\006 \001(\0132*.flyteidl.core.WorkflowExe" - "cutionIdentifier\022\021\n\tprincipal\030\007 \001(\t\022\031\n\021s" - "hort_description\030\010 \001(\t\022\030\n\020long_descripti" - "on\030\t \001(\t\022+\n\ruser_metadata\030\n \001(\0132\024.google" - ".protobuf.Any\022\025\n\rmetadata_type\030\013 \001(\t\"G\n\026" - "CreateArtifactResponse\022-\n\010artifact\030\001 \001(\013" - "2\033.flyteidl.artifact.Artifact\"R\n\022GetArti" - "factRequest\022+\n\005query\030\001 \001(\0132\034.flyteidl.co" - "re.ArtifactQuery\022\017\n\007details\030\002 \001(\010\"D\n\023Get" - "ArtifactResponse\022-\n\010artifact\030\001 \001(\0132\033.fly" - "teidl.artifact.Artifact\";\n\030ListArtifactN" - "amesRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002" - " \001(\t\"N\n\031ListArtifactNamesResponse\0221\n\rart" - "ifact_keys\030\001 \003(\0132\032.flyteidl.core.Artifac" - "tKey\"H\n\024ListArtifactsRequest\0220\n\014artifact" - "_key\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\"G" - "\n\025ListArtifactsResponse\022.\n\tartifacts\030\001 \003" - "(\0132\033.flyteidl.artifact.Artifact\"a\n\rAddTa" - "gRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyteidl" - ".core.ArtifactID\022\r\n\005value\030\002 \001(\t\022\021\n\toverw" - "rite\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n\024CreateTr" - "iggerRequest\0227\n\023trigger_launch_plan\030\001 \001(" - "\0132\032.flyteidl.admin.LaunchPlan\"\027\n\025CreateT" - "riggerResponse\"E\n\024DeleteTriggerRequest\022-" - "\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.core.Ident" - "ifier\"\027\n\025DeleteTriggerResponse\"m\n\020Artifa" - "ctProducer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl" - ".core.Identifier\022+\n\007outputs\030\002 \001(\0132\032.flyt" - "eidl.core.VariableMap\"Q\n\027RegisterProduce" - "rRequest\0226\n\tproducers\030\001 \003(\0132#.flyteidl.a" - "rtifact.ArtifactProducer\"m\n\020ArtifactCons" - "umer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl.core." - "Identifier\022+\n\006inputs\030\002 \001(\0132\033.flyteidl.co" - "re.ParameterMap\"Q\n\027RegisterConsumerReque" - "st\0226\n\tconsumers\030\001 \003(\0132#.flyteidl.artifac" - "t.ArtifactConsumer\"\022\n\020RegisterResponse2\306" - "\005\n\020ArtifactRegistry\022g\n\016CreateArtifact\022(." - "flyteidl.artifact.CreateArtifactRequest\032" - ").flyteidl.artifact.CreateArtifactRespon" - "se\"\000\022^\n\013GetArtifact\022%.flyteidl.artifact." - "GetArtifactRequest\032&.flyteidl.artifact.G" - "etArtifactResponse\"\000\022d\n\rCreateTrigger\022\'." - "flyteidl.artifact.CreateTriggerRequest\032(" - ".flyteidl.artifact.CreateTriggerResponse" - "\"\000\022d\n\rDeleteTrigger\022\'.flyteidl.artifact." - "DeleteTriggerRequest\032(.flyteidl.artifact" - ".DeleteTriggerResponse\"\000\022O\n\006AddTag\022 .fly" - "teidl.artifact.AddTagRequest\032!.flyteidl." - "artifact.AddTagResponse\"\000\022e\n\020RegisterPro" - "ducer\022*.flyteidl.artifact.RegisterProduc" - "erRequest\032#.flyteidl.artifact.RegisterRe" - "sponse\"\000\022e\n\020RegisterConsumer\022*.flyteidl." - "artifact.RegisterConsumerRequest\032#.flyte" - "idl.artifact.RegisterResponse\"\000B@Z>githu" - "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" - "flyteidl/artifactb\006proto3" + "o\032\034google/api/annotations.proto\032 flyteid" + "l/admin/launch_plan.proto\032\034flyteidl/core" + "/literals.proto\032\031flyteidl/core/types.pro" + "to\032\036flyteidl/core/identifier.proto\032\037flyt" + "eidl/core/artifact_id.proto\032\035flyteidl/co" + "re/interface.proto\"w\n\010Artifact\022.\n\013artifa" + "ct_id\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022-" + "\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Artifac" + "tSpec\022\014\n\004tags\030\003 \003(\t\"\227\002\n\025CreateArtifactRe" + "quest\0220\n\014artifact_key\030\001 \001(\0132\032.flyteidl.c" + "ore.ArtifactKey\022\017\n\007version\030\003 \001(\t\022-\n\004spec" + "\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec\022" + "L\n\npartitions\030\004 \003(\01328.flyteidl.artifact." + "CreateArtifactRequest.PartitionsEntry\022\013\n" + "\003tag\030\005 \001(\t\0321\n\017PartitionsEntry\022\013\n\003key\030\001 \001" + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\352\002\n\014ArtifactSpec\022%" + "\n\005value\030\001 \001(\0132\026.flyteidl.core.Literal\022(\n" + "\004type\030\002 \001(\0132\032.flyteidl.core.LiteralType\022" + ">\n\016task_execution\030\005 \001(\0132&.flyteidl.core." + "TaskExecutionIdentifier\022=\n\texecution\030\006 \001" + "(\0132*.flyteidl.core.WorkflowExecutionIden" + "tifier\022\021\n\tprincipal\030\007 \001(\t\022\031\n\021short_descr" + "iption\030\010 \001(\t\022\030\n\020long_description\030\t \001(\t\022+" + "\n\ruser_metadata\030\n \001(\0132\024.google.protobuf." + "Any\022\025\n\rmetadata_type\030\013 \001(\t\"G\n\026CreateArti" + "factResponse\022-\n\010artifact\030\001 \001(\0132\033.flyteid" + "l.artifact.Artifact\"R\n\022GetArtifactReques" + "t\022+\n\005query\030\001 \001(\0132\034.flyteidl.core.Artifac" + "tQuery\022\017\n\007details\030\002 \001(\010\"D\n\023GetArtifactRe" + "sponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl.arti" + "fact.Artifact\";\n\030ListArtifactNamesReques" + "t\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\"N\n\031Li" + "stArtifactNamesResponse\0221\n\rartifact_keys" + "\030\001 \003(\0132\032.flyteidl.core.ArtifactKey\"y\n\026Se" + "archArtifactsRequest\0220\n\014artifact_key\030\001 \001" + "(\0132\032.flyteidl.core.ArtifactKey\022\017\n\007filter" + "s\030\002 \001(\t\022\r\n\005token\030\003 \001(\t\022\r\n\005limit\030\004 \001(\005\"I\n" + "\027SearchArtifactsResponse\022.\n\tartifacts\030\001 " + "\003(\0132\033.flyteidl.artifact.Artifact\"a\n\rAddT" + "agRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyteid" + "l.core.ArtifactID\022\r\n\005value\030\002 \001(\t\022\021\n\tover" + "write\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n\024CreateT" + "riggerRequest\0227\n\023trigger_launch_plan\030\001 \001" + "(\0132\032.flyteidl.admin.LaunchPlan\"\027\n\025Create" + "TriggerResponse\"E\n\024DeleteTriggerRequest\022" + "-\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.core.Iden" + "tifier\"\027\n\025DeleteTriggerResponse\"m\n\020Artif" + "actProducer\022,\n\tentity_id\030\001 \001(\0132\031.flyteid" + "l.core.Identifier\022+\n\007outputs\030\002 \001(\0132\032.fly" + "teidl.core.VariableMap\"Q\n\027RegisterProduc" + "erRequest\0226\n\tproducers\030\001 \003(\0132#.flyteidl." + "artifact.ArtifactProducer\"m\n\020ArtifactCon" + "sumer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl.core" + ".Identifier\022+\n\006inputs\030\002 \001(\0132\033.flyteidl.c" + "ore.ParameterMap\"Q\n\027RegisterConsumerRequ" + "est\0226\n\tconsumers\030\001 \003(\0132#.flyteidl.artifa" + "ct.ArtifactConsumer\"\022\n\020RegisterResponse2" + "\273\013\n\020ArtifactRegistry\022g\n\016CreateArtifact\022(" + ".flyteidl.artifact.CreateArtifactRequest" + "\032).flyteidl.artifact.CreateArtifactRespo" + "nse\"\000\022\315\004\n\013GetArtifact\022%.flyteidl.artifac" + "t.GetArtifactRequest\032&.flyteidl.artifact" + ".GetArtifactResponse\"\356\003\202\323\344\223\002\347\003\022\022/data/v1" + "/artifactsZ\252\001\022\247\001/data/v1/artifact/id/{qu" + "ery.artifact_id.artifact_key.project}/{q" + "uery.artifact_id.artifact_key.domain}/{q" + "uery.artifact_id.artifact_key.name}/{que" + "ry.artifact_id.version}Z\216\001\022\213\001/data/v1/ar" + "tifact/id/{query.artifact_id.artifact_ke" + "y.project}/{query.artifact_id.artifact_k" + "ey.domain}/{query.artifact_id.artifact_k" + "ey.name}Z\222\001\022\217\001/data/v1/artifact/tag/{que" + "ry.artifact_tag.artifact_key.project}/{q" + "uery.artifact_tag.artifact_key.domain}/{" + "query.artifact_tag.artifact_key.name}\022\202\002" + "\n\017SearchArtifacts\022).flyteidl.artifact.Se" + "archArtifactsRequest\032*.flyteidl.artifact" + ".SearchArtifactsResponse\"\227\001\202\323\344\223\002\220\001\022O/dat" + "a/v1/query/{artifact_key.project}/{artif" + "act_key.domain}/{artifact_key.name}Z=\022;/" + "data/v1/query/{artifact_key.project}/{ar" + "tifact_key.domain}\022d\n\rCreateTrigger\022\'.fl" + "yteidl.artifact.CreateTriggerRequest\032(.f" + "lyteidl.artifact.CreateTriggerResponse\"\000" + "\022d\n\rDeleteTrigger\022\'.flyteidl.artifact.De" + "leteTriggerRequest\032(.flyteidl.artifact.D" + "eleteTriggerResponse\"\000\022O\n\006AddTag\022 .flyte" + "idl.artifact.AddTagRequest\032!.flyteidl.ar" + "tifact.AddTagResponse\"\000\022e\n\020RegisterProdu" + "cer\022*.flyteidl.artifact.RegisterProducer" + "Request\032#.flyteidl.artifact.RegisterResp" + "onse\"\000\022e\n\020RegisterConsumer\022*.flyteidl.ar" + "tifact.RegisterConsumerRequest\032#.flyteid" + "l.artifact.RegisterResponse\"\000B@Z>github." + "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" + "yteidl/artifactb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fartifact_2fartifacts_2eproto = { false, InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto, descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto, - "flyteidl/artifact/artifacts.proto", &assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto, 3065, + "flyteidl/artifact/artifacts.proto", &assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto, 3903, }; void AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[7] = + static constexpr ::google::protobuf::internal::InitFunc deps[8] = { ::AddDescriptors_google_2fprotobuf_2fany_2eproto, + ::AddDescriptors_google_2fapi_2fannotations_2eproto, ::AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, ::AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, @@ -791,7 +816,7 @@ void AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto() { ::AddDescriptors_flyteidl_2fcore_2fartifact_5fid_2eproto, ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fartifact_2fartifacts_2eproto, deps, 7); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fartifact_2fartifacts_2eproto, deps, 8); } // Force running AddDescriptors() at dynamic initialization time. @@ -4391,87 +4416,108 @@ ::google::protobuf::Metadata ListArtifactNamesResponse::GetMetadata() const { // =================================================================== -void ListArtifactsRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_ListArtifactsRequest_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( +void SearchArtifactsRequest::InitAsDefaultInstance() { + ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( ::flyteidl::core::ArtifactKey::internal_default_instance()); } -class ListArtifactsRequest::HasBitSetters { +class SearchArtifactsRequest::HasBitSetters { public: - static const ::flyteidl::core::ArtifactKey& artifact_key(const ListArtifactsRequest* msg); + static const ::flyteidl::core::ArtifactKey& artifact_key(const SearchArtifactsRequest* msg); }; const ::flyteidl::core::ArtifactKey& -ListArtifactsRequest::HasBitSetters::artifact_key(const ListArtifactsRequest* msg) { +SearchArtifactsRequest::HasBitSetters::artifact_key(const SearchArtifactsRequest* msg) { return *msg->artifact_key_; } -void ListArtifactsRequest::clear_artifact_key() { +void SearchArtifactsRequest::clear_artifact_key() { if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { delete artifact_key_; } artifact_key_ = nullptr; } #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListArtifactsRequest::kArtifactKeyFieldNumber; +const int SearchArtifactsRequest::kArtifactKeyFieldNumber; +const int SearchArtifactsRequest::kFiltersFieldNumber; +const int SearchArtifactsRequest::kTokenFieldNumber; +const int SearchArtifactsRequest::kLimitFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ListArtifactsRequest::ListArtifactsRequest() +SearchArtifactsRequest::SearchArtifactsRequest() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsRequest) } -ListArtifactsRequest::ListArtifactsRequest(const ListArtifactsRequest& from) +SearchArtifactsRequest::SearchArtifactsRequest(const SearchArtifactsRequest& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } if (from.has_artifact_key()) { artifact_key_ = new ::flyteidl::core::ArtifactKey(*from.artifact_key_); } else { artifact_key_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ListArtifactsRequest) + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsRequest) } -void ListArtifactsRequest::SharedCtor() { +void SearchArtifactsRequest::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ListArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - artifact_key_ = nullptr; + &scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&artifact_key_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&artifact_key_)) + sizeof(limit_)); } -ListArtifactsRequest::~ListArtifactsRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ListArtifactsRequest) +SearchArtifactsRequest::~SearchArtifactsRequest() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsRequest) SharedDtor(); } -void ListArtifactsRequest::SharedDtor() { +void SearchArtifactsRequest::SharedDtor() { + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete artifact_key_; } -void ListArtifactsRequest::SetCachedSize(int size) const { +void SearchArtifactsRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ListArtifactsRequest& ListArtifactsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); +const SearchArtifactsRequest& SearchArtifactsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void ListArtifactsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ListArtifactsRequest) +void SearchArtifactsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { delete artifact_key_; } artifact_key_ = nullptr; + limit_ = 0; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListArtifactsRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* SearchArtifactsRequest::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -4494,6 +4540,45 @@ const char* ListArtifactsRequest::_InternalParse(const char* begin, const char* {parser_till_end, object}, ptr - size, ptr)); break; } + // string filters = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string token = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int32 limit = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -4509,16 +4594,20 @@ const char* ListArtifactsRequest::_InternalParse(const char* begin, const char* } // switch } // while return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; len_delim_till_end: return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListArtifactsRequest::MergePartialFromCodedStream( +bool SearchArtifactsRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.SearchArtifactsRequest) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -4535,6 +4624,49 @@ bool ListArtifactsRequest::MergePartialFromCodedStream( break; } + // string filters = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.artifact.SearchArtifactsRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.artifact.SearchArtifactsRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // int32 limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: if (tag == 0) { @@ -4547,18 +4679,18 @@ bool ListArtifactsRequest::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.SearchArtifactsRequest) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsRequest) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ListArtifactsRequest::SerializeWithCachedSizes( +void SearchArtifactsRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4568,16 +4700,41 @@ void ListArtifactsRequest::SerializeWithCachedSizes( 1, HasBitSetters::artifact_key(this), output); } + // string filters = 2; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->filters(), output); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // int32 limit = 4; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->limit(), output); + } + if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsRequest) } -::google::protobuf::uint8* ListArtifactsRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* SearchArtifactsRequest::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4588,16 +4745,43 @@ ::google::protobuf::uint8* ListArtifactsRequest::InternalSerializeWithCachedSize 1, HasBitSetters::artifact_key(this), target); } + // string filters = 2; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->filters(), target); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.artifact.SearchArtifactsRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // int32 limit = 4; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->limit(), target); + } + if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.SearchArtifactsRequest) return target; } -size_t ListArtifactsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ListArtifactsRequest) +size_t SearchArtifactsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsRequest) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4609,6 +4793,20 @@ size_t ListArtifactsRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string filters = 2; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + // .flyteidl.core.ArtifactKey artifact_key = 1; if (this->has_artifact_key()) { total_size += 1 + @@ -4616,67 +4814,90 @@ size_t ListArtifactsRequest::ByteSizeLong() const { *artifact_key_); } + // int32 limit = 4; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->limit()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ListArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ListArtifactsRequest) +void SearchArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) GOOGLE_DCHECK_NE(&from, this); - const ListArtifactsRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const SearchArtifactsRequest* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsRequest) MergeFrom(*source); } } -void ListArtifactsRequest::MergeFrom(const ListArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ListArtifactsRequest) +void SearchArtifactsRequest::MergeFrom(const SearchArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } if (from.has_artifact_key()) { mutable_artifact_key()->::flyteidl::core::ArtifactKey::MergeFrom(from.artifact_key()); } + if (from.limit() != 0) { + set_limit(from.limit()); + } } -void ListArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ListArtifactsRequest) +void SearchArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void ListArtifactsRequest::CopyFrom(const ListArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ListArtifactsRequest) +void SearchArtifactsRequest::CopyFrom(const SearchArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListArtifactsRequest::IsInitialized() const { +bool SearchArtifactsRequest::IsInitialized() const { return true; } -void ListArtifactsRequest::Swap(ListArtifactsRequest* other) { +void SearchArtifactsRequest::Swap(SearchArtifactsRequest* other) { if (other == this) return; InternalSwap(other); } -void ListArtifactsRequest::InternalSwap(ListArtifactsRequest* other) { +void SearchArtifactsRequest::InternalSwap(SearchArtifactsRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); swap(artifact_key_, other->artifact_key_); + swap(limit_, other->limit_); } -::google::protobuf::Metadata ListArtifactsRequest::GetMetadata() const { +::google::protobuf::Metadata SearchArtifactsRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -4684,53 +4905,53 @@ ::google::protobuf::Metadata ListArtifactsRequest::GetMetadata() const { // =================================================================== -void ListArtifactsResponse::InitAsDefaultInstance() { +void SearchArtifactsResponse::InitAsDefaultInstance() { } -class ListArtifactsResponse::HasBitSetters { +class SearchArtifactsResponse::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListArtifactsResponse::kArtifactsFieldNumber; +const int SearchArtifactsResponse::kArtifactsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -ListArtifactsResponse::ListArtifactsResponse() +SearchArtifactsResponse::SearchArtifactsResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsResponse) } -ListArtifactsResponse::ListArtifactsResponse(const ListArtifactsResponse& from) +SearchArtifactsResponse::SearchArtifactsResponse(const SearchArtifactsResponse& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr), artifacts_(from.artifacts_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsResponse) } -void ListArtifactsResponse::SharedCtor() { +void SearchArtifactsResponse::SharedCtor() { ::google::protobuf::internal::InitSCC( - &scc_info_ListArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); + &scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); } -ListArtifactsResponse::~ListArtifactsResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ListArtifactsResponse) +SearchArtifactsResponse::~SearchArtifactsResponse() { + // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsResponse) SharedDtor(); } -void ListArtifactsResponse::SharedDtor() { +void SearchArtifactsResponse::SharedDtor() { } -void ListArtifactsResponse::SetCachedSize(int size) const { +void SearchArtifactsResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ListArtifactsResponse& ListArtifactsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); +const SearchArtifactsResponse& SearchArtifactsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); return *internal_default_instance(); } -void ListArtifactsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ListArtifactsResponse) +void SearchArtifactsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4740,9 +4961,9 @@ void ListArtifactsResponse::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListArtifactsResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* SearchArtifactsResponse::_InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); + auto msg = static_cast(object); ::google::protobuf::int32 size; (void)size; int depth; (void)depth; ::google::protobuf::uint32 tag; @@ -4788,11 +5009,11 @@ const char* ListArtifactsResponse::_InternalParse(const char* begin, const char* {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListArtifactsResponse::MergePartialFromCodedStream( +bool SearchArtifactsResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(parse_start:flyteidl.artifact.SearchArtifactsResponse) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -4821,18 +5042,18 @@ bool ListArtifactsResponse::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(parse_success:flyteidl.artifact.SearchArtifactsResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ListArtifactsResponse::SerializeWithCachedSizes( +void SearchArtifactsResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4849,12 +5070,12 @@ void ListArtifactsResponse::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsResponse) } -::google::protobuf::uint8* ListArtifactsResponse::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* SearchArtifactsResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4870,12 +5091,12 @@ ::google::protobuf::uint8* ListArtifactsResponse::InternalSerializeWithCachedSiz target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.artifact.SearchArtifactsResponse) return target; } -size_t ListArtifactsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ListArtifactsResponse) +size_t SearchArtifactsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -4903,23 +5124,23 @@ size_t ListArtifactsResponse::ByteSizeLong() const { return total_size; } -void ListArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ListArtifactsResponse) +void SearchArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) GOOGLE_DCHECK_NE(&from, this); - const ListArtifactsResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const SearchArtifactsResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsResponse) MergeFrom(*source); } } -void ListArtifactsResponse::MergeFrom(const ListArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ListArtifactsResponse) +void SearchArtifactsResponse::MergeFrom(const SearchArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -4928,35 +5149,35 @@ void ListArtifactsResponse::MergeFrom(const ListArtifactsResponse& from) { artifacts_.MergeFrom(from.artifacts_); } -void ListArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ListArtifactsResponse) +void SearchArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void ListArtifactsResponse::CopyFrom(const ListArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ListArtifactsResponse) +void SearchArtifactsResponse::CopyFrom(const SearchArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool ListArtifactsResponse::IsInitialized() const { +bool SearchArtifactsResponse::IsInitialized() const { return true; } -void ListArtifactsResponse::Swap(ListArtifactsResponse* other) { +void SearchArtifactsResponse::Swap(SearchArtifactsResponse* other) { if (other == this) return; InternalSwap(other); } -void ListArtifactsResponse::InternalSwap(ListArtifactsResponse* other) { +void SearchArtifactsResponse::InternalSwap(SearchArtifactsResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); } -::google::protobuf::Metadata ListArtifactsResponse::GetMetadata() const { +::google::protobuf::Metadata SearchArtifactsResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; } @@ -8124,11 +8345,11 @@ template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListArtifactNamesRequest* Are template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListArtifactNamesResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::ListArtifactNamesResponse >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::ListArtifactNamesResponse >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListArtifactsRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::ListArtifactsRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ListArtifactsRequest >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchArtifactsRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchArtifactsRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::SearchArtifactsRequest >(arena); } -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ListArtifactsResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::ListArtifactsResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ListArtifactsResponse >(arena); +template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchArtifactsResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchArtifactsResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::artifact::SearchArtifactsResponse >(arena); } template<> PROTOBUF_NOINLINE ::flyteidl::artifact::AddTagRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::AddTagRequest >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::artifact::AddTagRequest >(arena); diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h index 790dbd9698..d41fa70142 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h @@ -35,6 +35,7 @@ #include #include #include +#include "google/api/annotations.pb.h" #include "flyteidl/admin/launch_plan.pb.h" #include "flyteidl/core/literals.pb.h" #include "flyteidl/core/types.pb.h" @@ -111,12 +112,6 @@ extern ListArtifactNamesRequestDefaultTypeInternal _ListArtifactNamesRequest_def class ListArtifactNamesResponse; class ListArtifactNamesResponseDefaultTypeInternal; extern ListArtifactNamesResponseDefaultTypeInternal _ListArtifactNamesResponse_default_instance_; -class ListArtifactsRequest; -class ListArtifactsRequestDefaultTypeInternal; -extern ListArtifactsRequestDefaultTypeInternal _ListArtifactsRequest_default_instance_; -class ListArtifactsResponse; -class ListArtifactsResponseDefaultTypeInternal; -extern ListArtifactsResponseDefaultTypeInternal _ListArtifactsResponse_default_instance_; class RegisterConsumerRequest; class RegisterConsumerRequestDefaultTypeInternal; extern RegisterConsumerRequestDefaultTypeInternal _RegisterConsumerRequest_default_instance_; @@ -126,6 +121,12 @@ extern RegisterProducerRequestDefaultTypeInternal _RegisterProducerRequest_defau class RegisterResponse; class RegisterResponseDefaultTypeInternal; extern RegisterResponseDefaultTypeInternal _RegisterResponse_default_instance_; +class SearchArtifactsRequest; +class SearchArtifactsRequestDefaultTypeInternal; +extern SearchArtifactsRequestDefaultTypeInternal _SearchArtifactsRequest_default_instance_; +class SearchArtifactsResponse; +class SearchArtifactsResponseDefaultTypeInternal; +extern SearchArtifactsResponseDefaultTypeInternal _SearchArtifactsResponse_default_instance_; } // namespace artifact } // namespace flyteidl namespace google { @@ -147,11 +148,11 @@ template<> ::flyteidl::artifact::GetArtifactRequest* Arena::CreateMaybeMessage<: template<> ::flyteidl::artifact::GetArtifactResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::GetArtifactResponse>(Arena*); template<> ::flyteidl::artifact::ListArtifactNamesRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::ListArtifactNamesRequest>(Arena*); template<> ::flyteidl::artifact::ListArtifactNamesResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::ListArtifactNamesResponse>(Arena*); -template<> ::flyteidl::artifact::ListArtifactsRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::ListArtifactsRequest>(Arena*); -template<> ::flyteidl::artifact::ListArtifactsResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::ListArtifactsResponse>(Arena*); template<> ::flyteidl::artifact::RegisterConsumerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterConsumerRequest>(Arena*); template<> ::flyteidl::artifact::RegisterProducerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterProducerRequest>(Arena*); template<> ::flyteidl::artifact::RegisterResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterResponse>(Arena*); +template<> ::flyteidl::artifact::SearchArtifactsRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchArtifactsRequest>(Arena*); +template<> ::flyteidl::artifact::SearchArtifactsResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchArtifactsResponse>(Arena*); } // namespace protobuf } // namespace google namespace flyteidl { @@ -1322,25 +1323,25 @@ class ListArtifactNamesResponse final : }; // ------------------------------------------------------------------- -class ListArtifactsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ListArtifactsRequest) */ { +class SearchArtifactsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.SearchArtifactsRequest) */ { public: - ListArtifactsRequest(); - virtual ~ListArtifactsRequest(); + SearchArtifactsRequest(); + virtual ~SearchArtifactsRequest(); - ListArtifactsRequest(const ListArtifactsRequest& from); + SearchArtifactsRequest(const SearchArtifactsRequest& from); - inline ListArtifactsRequest& operator=(const ListArtifactsRequest& from) { + inline SearchArtifactsRequest& operator=(const SearchArtifactsRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - ListArtifactsRequest(ListArtifactsRequest&& from) noexcept - : ListArtifactsRequest() { + SearchArtifactsRequest(SearchArtifactsRequest&& from) noexcept + : SearchArtifactsRequest() { *this = ::std::move(from); } - inline ListArtifactsRequest& operator=(ListArtifactsRequest&& from) noexcept { + inline SearchArtifactsRequest& operator=(SearchArtifactsRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1352,34 +1353,34 @@ class ListArtifactsRequest final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const ListArtifactsRequest& default_instance(); + static const SearchArtifactsRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListArtifactsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListArtifactsRequest_default_instance_); + static inline const SearchArtifactsRequest* internal_default_instance() { + return reinterpret_cast( + &_SearchArtifactsRequest_default_instance_); } static constexpr int kIndexInFileMessages = 9; - void Swap(ListArtifactsRequest* other); - friend void swap(ListArtifactsRequest& a, ListArtifactsRequest& b) { + void Swap(SearchArtifactsRequest* other); + friend void swap(SearchArtifactsRequest& a, SearchArtifactsRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline ListArtifactsRequest* New() const final { - return CreateMaybeMessage(nullptr); + inline SearchArtifactsRequest* New() const final { + return CreateMaybeMessage(nullptr); } - ListArtifactsRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + SearchArtifactsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ListArtifactsRequest& from); - void MergeFrom(const ListArtifactsRequest& from); + void CopyFrom(const SearchArtifactsRequest& from); + void MergeFrom(const SearchArtifactsRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1401,7 +1402,7 @@ class ListArtifactsRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ListArtifactsRequest* other); + void InternalSwap(SearchArtifactsRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1417,6 +1418,34 @@ class ListArtifactsRequest final : // accessors ------------------------------------------------------- + // string filters = 2; + void clear_filters(); + static const int kFiltersFieldNumber = 2; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + // .flyteidl.core.ArtifactKey artifact_key = 1; bool has_artifact_key() const; void clear_artifact_key(); @@ -1426,36 +1455,45 @@ class ListArtifactsRequest final : ::flyteidl::core::ArtifactKey* mutable_artifact_key(); void set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key); - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactsRequest) + // int32 limit = 4; + void clear_limit(); + static const int kLimitFieldNumber = 4; + ::google::protobuf::int32 limit() const; + void set_limit(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsRequest) private: class HasBitSetters; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::google::protobuf::internal::ArenaStringPtr token_; ::flyteidl::core::ArtifactKey* artifact_key_; + ::google::protobuf::int32 limit_; mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; }; // ------------------------------------------------------------------- -class ListArtifactsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ListArtifactsResponse) */ { +class SearchArtifactsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.SearchArtifactsResponse) */ { public: - ListArtifactsResponse(); - virtual ~ListArtifactsResponse(); + SearchArtifactsResponse(); + virtual ~SearchArtifactsResponse(); - ListArtifactsResponse(const ListArtifactsResponse& from); + SearchArtifactsResponse(const SearchArtifactsResponse& from); - inline ListArtifactsResponse& operator=(const ListArtifactsResponse& from) { + inline SearchArtifactsResponse& operator=(const SearchArtifactsResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 - ListArtifactsResponse(ListArtifactsResponse&& from) noexcept - : ListArtifactsResponse() { + SearchArtifactsResponse(SearchArtifactsResponse&& from) noexcept + : SearchArtifactsResponse() { *this = ::std::move(from); } - inline ListArtifactsResponse& operator=(ListArtifactsResponse&& from) noexcept { + inline SearchArtifactsResponse& operator=(SearchArtifactsResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1467,34 +1505,34 @@ class ListArtifactsResponse final : static const ::google::protobuf::Descriptor* descriptor() { return default_instance().GetDescriptor(); } - static const ListArtifactsResponse& default_instance(); + static const SearchArtifactsResponse& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListArtifactsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListArtifactsResponse_default_instance_); + static inline const SearchArtifactsResponse* internal_default_instance() { + return reinterpret_cast( + &_SearchArtifactsResponse_default_instance_); } static constexpr int kIndexInFileMessages = 10; - void Swap(ListArtifactsResponse* other); - friend void swap(ListArtifactsResponse& a, ListArtifactsResponse& b) { + void Swap(SearchArtifactsResponse* other); + friend void swap(SearchArtifactsResponse& a, SearchArtifactsResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- - inline ListArtifactsResponse* New() const final { - return CreateMaybeMessage(nullptr); + inline SearchArtifactsResponse* New() const final { + return CreateMaybeMessage(nullptr); } - ListArtifactsResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); + SearchArtifactsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ListArtifactsResponse& from); - void MergeFrom(const ListArtifactsResponse& from); + void CopyFrom(const SearchArtifactsResponse& from); + void MergeFrom(const SearchArtifactsResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1516,7 +1554,7 @@ class ListArtifactsResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ListArtifactsResponse* other); + void InternalSwap(SearchArtifactsResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; @@ -1544,7 +1582,7 @@ class ListArtifactsResponse final : const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >& artifacts() const; - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsResponse) private: class HasBitSetters; @@ -3985,35 +4023,35 @@ ListArtifactNamesResponse::artifact_keys() const { // ------------------------------------------------------------------- -// ListArtifactsRequest +// SearchArtifactsRequest // .flyteidl.core.ArtifactKey artifact_key = 1; -inline bool ListArtifactsRequest::has_artifact_key() const { +inline bool SearchArtifactsRequest::has_artifact_key() const { return this != internal_default_instance() && artifact_key_ != nullptr; } -inline const ::flyteidl::core::ArtifactKey& ListArtifactsRequest::artifact_key() const { +inline const ::flyteidl::core::ArtifactKey& SearchArtifactsRequest::artifact_key() const { const ::flyteidl::core::ArtifactKey* p = artifact_key_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ListArtifactsRequest.artifact_key) + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.artifact_key) return p != nullptr ? *p : *reinterpret_cast( &::flyteidl::core::_ArtifactKey_default_instance_); } -inline ::flyteidl::core::ArtifactKey* ListArtifactsRequest::release_artifact_key() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ListArtifactsRequest.artifact_key) +inline ::flyteidl::core::ArtifactKey* SearchArtifactsRequest::release_artifact_key() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.artifact_key) ::flyteidl::core::ArtifactKey* temp = artifact_key_; artifact_key_ = nullptr; return temp; } -inline ::flyteidl::core::ArtifactKey* ListArtifactsRequest::mutable_artifact_key() { +inline ::flyteidl::core::ArtifactKey* SearchArtifactsRequest::mutable_artifact_key() { if (artifact_key_ == nullptr) { auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactKey>(GetArenaNoVirtual()); artifact_key_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ListArtifactsRequest.artifact_key) + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.artifact_key) return artifact_key_; } -inline void ListArtifactsRequest::set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key) { +inline void SearchArtifactsRequest::set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_key_); @@ -4029,40 +4067,160 @@ inline void ListArtifactsRequest::set_allocated_artifact_key(::flyteidl::core::A } artifact_key_ = artifact_key; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ListArtifactsRequest.artifact_key) + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.artifact_key) +} + +// string filters = 2; +inline void SearchArtifactsRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SearchArtifactsRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.filters) + return filters_.GetNoArena(); +} +inline void SearchArtifactsRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.filters) +} +#if LANG_CXX11 +inline void SearchArtifactsRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.filters) +} +#endif +inline void SearchArtifactsRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.filters) +} +inline void SearchArtifactsRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.filters) +} +inline ::std::string* SearchArtifactsRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SearchArtifactsRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchArtifactsRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.filters) +} + +// string token = 3; +inline void SearchArtifactsRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SearchArtifactsRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.token) + return token_.GetNoArena(); +} +inline void SearchArtifactsRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.token) +} +#if LANG_CXX11 +inline void SearchArtifactsRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.token) +} +#endif +inline void SearchArtifactsRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.token) +} +inline void SearchArtifactsRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.token) +} +inline ::std::string* SearchArtifactsRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SearchArtifactsRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SearchArtifactsRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.token) +} + +// int32 limit = 4; +inline void SearchArtifactsRequest::clear_limit() { + limit_ = 0; +} +inline ::google::protobuf::int32 SearchArtifactsRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.limit) + return limit_; +} +inline void SearchArtifactsRequest::set_limit(::google::protobuf::int32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.limit) } // ------------------------------------------------------------------- -// ListArtifactsResponse +// SearchArtifactsResponse // repeated .flyteidl.artifact.Artifact artifacts = 1; -inline int ListArtifactsResponse::artifacts_size() const { +inline int SearchArtifactsResponse::artifacts_size() const { return artifacts_.size(); } -inline void ListArtifactsResponse::clear_artifacts() { +inline void SearchArtifactsResponse::clear_artifacts() { artifacts_.Clear(); } -inline ::flyteidl::artifact::Artifact* ListArtifactsResponse::mutable_artifacts(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ListArtifactsResponse.artifacts) +inline ::flyteidl::artifact::Artifact* SearchArtifactsResponse::mutable_artifacts(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsResponse.artifacts) return artifacts_.Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >* -ListArtifactsResponse::mutable_artifacts() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.ListArtifactsResponse.artifacts) +SearchArtifactsResponse::mutable_artifacts() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.SearchArtifactsResponse.artifacts) return &artifacts_; } -inline const ::flyteidl::artifact::Artifact& ListArtifactsResponse::artifacts(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ListArtifactsResponse.artifacts) +inline const ::flyteidl::artifact::Artifact& SearchArtifactsResponse::artifacts(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsResponse.artifacts) return artifacts_.Get(index); } -inline ::flyteidl::artifact::Artifact* ListArtifactsResponse::add_artifacts() { - // @@protoc_insertion_point(field_add:flyteidl.artifact.ListArtifactsResponse.artifacts) +inline ::flyteidl::artifact::Artifact* SearchArtifactsResponse::add_artifacts() { + // @@protoc_insertion_point(field_add:flyteidl.artifact.SearchArtifactsResponse.artifacts) return artifacts_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >& -ListArtifactsResponse::artifacts() const { - // @@protoc_insertion_point(field_list:flyteidl.artifact.ListArtifactsResponse.artifacts) +SearchArtifactsResponse::artifacts() const { + // @@protoc_insertion_point(field_list:flyteidl.artifact.SearchArtifactsResponse.artifacts) return artifacts_; } diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go index 334303ff0b..6adb87ac80 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go @@ -10,6 +10,7 @@ import ( core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" + _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -477,78 +478,102 @@ func (m *ListArtifactNamesResponse) GetArtifactKeys() []*core.ArtifactKey { return nil } -type ListArtifactsRequest struct { +type SearchArtifactsRequest struct { ArtifactKey *core.ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` + Filters string `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ListArtifactsRequest) Reset() { *m = ListArtifactsRequest{} } -func (m *ListArtifactsRequest) String() string { return proto.CompactTextString(m) } -func (*ListArtifactsRequest) ProtoMessage() {} -func (*ListArtifactsRequest) Descriptor() ([]byte, []int) { +func (m *SearchArtifactsRequest) Reset() { *m = SearchArtifactsRequest{} } +func (m *SearchArtifactsRequest) String() string { return proto.CompactTextString(m) } +func (*SearchArtifactsRequest) ProtoMessage() {} +func (*SearchArtifactsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_804518da5936dedb, []int{8} } -func (m *ListArtifactsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListArtifactsRequest.Unmarshal(m, b) +func (m *SearchArtifactsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchArtifactsRequest.Unmarshal(m, b) } -func (m *ListArtifactsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListArtifactsRequest.Marshal(b, m, deterministic) +func (m *SearchArtifactsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchArtifactsRequest.Marshal(b, m, deterministic) } -func (m *ListArtifactsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArtifactsRequest.Merge(m, src) +func (m *SearchArtifactsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchArtifactsRequest.Merge(m, src) } -func (m *ListArtifactsRequest) XXX_Size() int { - return xxx_messageInfo_ListArtifactsRequest.Size(m) +func (m *SearchArtifactsRequest) XXX_Size() int { + return xxx_messageInfo_SearchArtifactsRequest.Size(m) } -func (m *ListArtifactsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListArtifactsRequest.DiscardUnknown(m) +func (m *SearchArtifactsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SearchArtifactsRequest.DiscardUnknown(m) } -var xxx_messageInfo_ListArtifactsRequest proto.InternalMessageInfo +var xxx_messageInfo_SearchArtifactsRequest proto.InternalMessageInfo -func (m *ListArtifactsRequest) GetArtifactKey() *core.ArtifactKey { +func (m *SearchArtifactsRequest) GetArtifactKey() *core.ArtifactKey { if m != nil { return m.ArtifactKey } return nil } -type ListArtifactsResponse struct { +func (m *SearchArtifactsRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *SearchArtifactsRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *SearchArtifactsRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +type SearchArtifactsResponse struct { Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ListArtifactsResponse) Reset() { *m = ListArtifactsResponse{} } -func (m *ListArtifactsResponse) String() string { return proto.CompactTextString(m) } -func (*ListArtifactsResponse) ProtoMessage() {} -func (*ListArtifactsResponse) Descriptor() ([]byte, []int) { +func (m *SearchArtifactsResponse) Reset() { *m = SearchArtifactsResponse{} } +func (m *SearchArtifactsResponse) String() string { return proto.CompactTextString(m) } +func (*SearchArtifactsResponse) ProtoMessage() {} +func (*SearchArtifactsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_804518da5936dedb, []int{9} } -func (m *ListArtifactsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListArtifactsResponse.Unmarshal(m, b) +func (m *SearchArtifactsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchArtifactsResponse.Unmarshal(m, b) } -func (m *ListArtifactsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListArtifactsResponse.Marshal(b, m, deterministic) +func (m *SearchArtifactsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchArtifactsResponse.Marshal(b, m, deterministic) } -func (m *ListArtifactsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArtifactsResponse.Merge(m, src) +func (m *SearchArtifactsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchArtifactsResponse.Merge(m, src) } -func (m *ListArtifactsResponse) XXX_Size() int { - return xxx_messageInfo_ListArtifactsResponse.Size(m) +func (m *SearchArtifactsResponse) XXX_Size() int { + return xxx_messageInfo_SearchArtifactsResponse.Size(m) } -func (m *ListArtifactsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListArtifactsResponse.DiscardUnknown(m) +func (m *SearchArtifactsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SearchArtifactsResponse.DiscardUnknown(m) } -var xxx_messageInfo_ListArtifactsResponse proto.InternalMessageInfo +var xxx_messageInfo_SearchArtifactsResponse proto.InternalMessageInfo -func (m *ListArtifactsResponse) GetArtifacts() []*Artifact { +func (m *SearchArtifactsResponse) GetArtifacts() []*Artifact { if m != nil { return m.Artifacts } @@ -1001,8 +1026,8 @@ func init() { proto.RegisterType((*GetArtifactResponse)(nil), "flyteidl.artifact.GetArtifactResponse") proto.RegisterType((*ListArtifactNamesRequest)(nil), "flyteidl.artifact.ListArtifactNamesRequest") proto.RegisterType((*ListArtifactNamesResponse)(nil), "flyteidl.artifact.ListArtifactNamesResponse") - proto.RegisterType((*ListArtifactsRequest)(nil), "flyteidl.artifact.ListArtifactsRequest") - proto.RegisterType((*ListArtifactsResponse)(nil), "flyteidl.artifact.ListArtifactsResponse") + proto.RegisterType((*SearchArtifactsRequest)(nil), "flyteidl.artifact.SearchArtifactsRequest") + proto.RegisterType((*SearchArtifactsResponse)(nil), "flyteidl.artifact.SearchArtifactsResponse") proto.RegisterType((*AddTagRequest)(nil), "flyteidl.artifact.AddTagRequest") proto.RegisterType((*AddTagResponse)(nil), "flyteidl.artifact.AddTagResponse") proto.RegisterType((*CreateTriggerRequest)(nil), "flyteidl.artifact.CreateTriggerRequest") @@ -1019,79 +1044,92 @@ func init() { func init() { proto.RegisterFile("flyteidl/artifact/artifacts.proto", fileDescriptor_804518da5936dedb) } var fileDescriptor_804518da5936dedb = []byte{ - // 1138 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x5d, 0x73, 0xdb, 0x44, - 0x17, 0xae, 0xeb, 0x7c, 0xd8, 0xc7, 0x71, 0xeb, 0x6e, 0xd3, 0x54, 0x71, 0xf3, 0xbe, 0x75, 0x95, - 0xa1, 0xb8, 0x05, 0xe4, 0x99, 0x84, 0x81, 0xb4, 0x33, 0x05, 0x42, 0xd3, 0x81, 0xd0, 0xa4, 0xa4, - 0x22, 0x7c, 0x0c, 0xd3, 0xc1, 0xb3, 0x96, 0x8e, 0x15, 0x11, 0x59, 0x52, 0x57, 0xab, 0x14, 0x5f, - 0x95, 0x7f, 0xc0, 0xbf, 0xe2, 0x9a, 0x7b, 0xfe, 0x0c, 0xa3, 0xd5, 0xae, 0x24, 0x3b, 0xb2, 0x9b, - 0x21, 0xdc, 0x49, 0x7b, 0x9e, 0xe7, 0x39, 0x1f, 0x3a, 0xe7, 0xac, 0x0d, 0xf7, 0x86, 0xde, 0x98, - 0xa3, 0x6b, 0x7b, 0x3d, 0xca, 0xb8, 0x3b, 0xa4, 0x16, 0xcf, 0x1e, 0x22, 0x23, 0x64, 0x01, 0x0f, - 0xc8, 0x0d, 0x05, 0x31, 0x94, 0xa5, 0xbd, 0xee, 0x04, 0x81, 0xe3, 0x61, 0x4f, 0x00, 0x06, 0xf1, - 0xb0, 0x47, 0xfd, 0x71, 0x8a, 0x6e, 0x77, 0x72, 0x41, 0x7b, 0xe4, 0xfa, 0x3d, 0x8f, 0xc6, 0xbe, - 0x75, 0xd2, 0x0f, 0x3d, 0xea, 0x4b, 0xc4, 0x46, 0x86, 0xb0, 0x02, 0x86, 0x3d, 0xcf, 0xe5, 0xc8, - 0xa8, 0x27, 0xbd, 0xb5, 0xd7, 0x27, 0xad, 0x7c, 0x1c, 0xa2, 0x32, 0xfd, 0x7f, 0xd2, 0xe4, 0xda, - 0xe8, 0x73, 0x77, 0xe8, 0x22, 0x93, 0xf6, 0xbb, 0x93, 0x76, 0x15, 0x6d, 0xdf, 0xb5, 0x25, 0xe0, - 0x7f, 0x53, 0x02, 0x3e, 0x47, 0x36, 0xa4, 0x16, 0xa6, 0x66, 0xfd, 0x8f, 0x0a, 0xd4, 0x76, 0x25, - 0x89, 0x3c, 0x86, 0x46, 0x41, 0x40, 0xab, 0x74, 0x2a, 0xdd, 0xc6, 0xd6, 0xba, 0x91, 0xd5, 0x22, - 0x51, 0x30, 0x14, 0x7a, 0x7f, 0xcf, 0x04, 0x85, 0xde, 0xb7, 0xc9, 0x36, 0x2c, 0x44, 0x21, 0x5a, - 0xda, 0x55, 0x41, 0xba, 0x6b, 0x9c, 0x2b, 0x60, 0x46, 0xfc, 0x2e, 0x44, 0xcb, 0x14, 0x60, 0x42, - 0x60, 0x81, 0x53, 0x27, 0xd2, 0xaa, 0x9d, 0x6a, 0xb7, 0x6e, 0x8a, 0x67, 0xfd, 0xaf, 0xab, 0x70, - 0xeb, 0x29, 0x43, 0xca, 0x51, 0x11, 0x4c, 0x7c, 0x1d, 0x63, 0xc4, 0xc9, 0x13, 0x58, 0xc9, 0xc2, - 0x3b, 0xc5, 0xb1, 0x8c, 0xaf, 0x3d, 0x23, 0xbe, 0xe7, 0x38, 0x36, 0xb3, 0x74, 0x9e, 0xe3, 0x98, - 0x68, 0xb0, 0x7c, 0x86, 0x2c, 0x72, 0x03, 0x5f, 0xab, 0x76, 0x2a, 0xdd, 0xba, 0xa9, 0x5e, 0xff, - 0x5d, 0xec, 0x3f, 0x01, 0x84, 0x89, 0x9d, 0xbb, 0x81, 0x1f, 0x69, 0x0b, 0x9d, 0x6a, 0xb7, 0xb1, - 0xb5, 0x53, 0x42, 0x2d, 0xcd, 0xc5, 0x38, 0xca, 0xa8, 0xcf, 0x7c, 0xce, 0xc6, 0x66, 0x41, 0x8b, - 0xb4, 0xa0, 0xca, 0xa9, 0xa3, 0x2d, 0x8a, 0x20, 0x93, 0xc7, 0xf6, 0x13, 0xb8, 0x3e, 0x45, 0x48, - 0x40, 0xaa, 0x06, 0x75, 0x33, 0x79, 0x24, 0xab, 0xb0, 0x78, 0x46, 0xbd, 0x18, 0x45, 0x1a, 0x75, - 0x33, 0x7d, 0x79, 0x7c, 0x75, 0xa7, 0xa2, 0xff, 0x5d, 0x85, 0x95, 0x62, 0x06, 0xe4, 0x43, 0x05, - 0x4d, 0x4b, 0xb8, 0x36, 0x55, 0xc2, 0x83, 0xb4, 0x3d, 0xa5, 0x04, 0x31, 0x60, 0x21, 0x69, 0x49, - 0x59, 0x9e, 0x76, 0x39, 0xf8, 0x78, 0x1c, 0xa2, 0x29, 0x70, 0xe4, 0x10, 0xae, 0x71, 0x1a, 0x9d, - 0xf6, 0xf1, 0x37, 0xb4, 0xe2, 0x24, 0x64, 0x91, 0x4a, 0x63, 0xeb, 0xfe, 0x14, 0xf3, 0x98, 0x46, - 0xa7, 0xcf, 0x14, 0x66, 0x3f, 0xeb, 0x6c, 0xb3, 0xc9, 0x8b, 0x06, 0xf2, 0x35, 0xd4, 0x73, 0xa5, - 0x25, 0xa1, 0xf4, 0x70, 0x4a, 0xe9, 0xc7, 0x80, 0x9d, 0x0e, 0xbd, 0xe0, 0x4d, 0x99, 0x5a, 0x4e, - 0x26, 0x1b, 0x50, 0x0f, 0x99, 0xeb, 0x5b, 0x6e, 0x48, 0x3d, 0x6d, 0x59, 0x54, 0x29, 0x3f, 0x20, - 0x1f, 0xc0, 0x8d, 0xe8, 0x24, 0x60, 0xbc, 0x6f, 0x63, 0x64, 0x31, 0x37, 0x14, 0xfe, 0x6a, 0x02, - 0xd5, 0x12, 0x86, 0xbd, 0xfc, 0x9c, 0x3c, 0x80, 0x96, 0x17, 0xf8, 0xce, 0x04, 0xb6, 0x2e, 0xb0, - 0xd7, 0x93, 0xf3, 0x22, 0xf4, 0x11, 0x34, 0xe3, 0x08, 0x59, 0x7f, 0x84, 0x9c, 0xda, 0x94, 0x53, - 0x0d, 0x44, 0x0e, 0xab, 0x46, 0xba, 0x50, 0x0c, 0xb5, 0x50, 0x8c, 0x5d, 0x7f, 0x6c, 0xae, 0x24, - 0xd0, 0x43, 0x89, 0x24, 0x9b, 0xd0, 0x54, 0xac, 0xbe, 0xf8, 0x04, 0x0d, 0xe1, 0x62, 0x45, 0x1d, - 0x26, 0x45, 0xd7, 0x5f, 0xc2, 0xda, 0x74, 0x8f, 0x45, 0x61, 0xe0, 0x47, 0x48, 0x3e, 0x85, 0x9a, - 0x6a, 0x43, 0xf9, 0xa5, 0xef, 0xcc, 0xe9, 0x6d, 0x33, 0x03, 0xeb, 0x03, 0x20, 0x5f, 0x21, 0x9f, - 0x9e, 0xbf, 0x2d, 0x58, 0x7c, 0x1d, 0x23, 0x53, 0x83, 0xb7, 0x31, 0x63, 0xf0, 0x5e, 0x26, 0x18, - 0x33, 0x85, 0x26, 0x43, 0x67, 0x23, 0xa7, 0xae, 0x17, 0x89, 0xf6, 0xa9, 0x99, 0xea, 0x55, 0x7f, - 0x01, 0x37, 0x27, 0x7c, 0x5c, 0x36, 0xe6, 0x03, 0xd0, 0x0e, 0xdc, 0x28, 0x13, 0x7c, 0x41, 0x47, - 0x18, 0xa9, 0xc8, 0x35, 0x58, 0x0e, 0x59, 0xf0, 0x2b, 0x4a, 0xcd, 0xba, 0xa9, 0x5e, 0xc9, 0x1a, - 0x2c, 0xd9, 0xc1, 0x88, 0xba, 0xbe, 0x9c, 0x1a, 0xf9, 0xa6, 0xbf, 0x82, 0xf5, 0x12, 0x35, 0x19, - 0xe3, 0xe7, 0xd0, 0x2c, 0x2e, 0xa2, 0x48, 0xab, 0x88, 0xe9, 0x9f, 0xb7, 0x89, 0x56, 0x0a, 0x9b, - 0x28, 0xd2, 0xbf, 0x87, 0xd5, 0xa2, 0x7a, 0xf4, 0xdf, 0x6c, 0x38, 0xdd, 0x84, 0x5b, 0x53, 0xb2, - 0x32, 0xe0, 0x47, 0x50, 0xcf, 0x6e, 0x38, 0x19, 0xec, 0xdc, 0xaa, 0xe6, 0x68, 0xfd, 0x2d, 0x34, - 0x77, 0x6d, 0xfb, 0x98, 0x3a, 0x2a, 0xc6, 0xcb, 0x5c, 0x12, 0xa5, 0x2b, 0x2a, 0x19, 0xcb, 0xe0, - 0x0c, 0xd9, 0x1b, 0xe6, 0x72, 0x14, 0xab, 0xb9, 0x66, 0xe6, 0x07, 0x7a, 0x0b, 0xae, 0xa9, 0x00, - 0xd2, 0x6c, 0xf4, 0x01, 0xac, 0xa6, 0x0d, 0x7f, 0xcc, 0x5c, 0xc7, 0x41, 0xa6, 0x22, 0xfb, 0x06, - 0x6e, 0xf2, 0xf4, 0xa4, 0x5f, 0xb8, 0x81, 0xcf, 0x17, 0x51, 0x5c, 0xd2, 0xc6, 0x81, 0x80, 0x1c, - 0x79, 0xd4, 0x37, 0x6f, 0x48, 0x5a, 0x7e, 0xa4, 0xdf, 0x56, 0x97, 0x50, 0xe6, 0x43, 0x3a, 0x3f, - 0x82, 0xd5, 0x3d, 0xf4, 0xf0, 0x9c, 0xf3, 0x1d, 0x00, 0xe5, 0x7c, 0x66, 0x55, 0x8a, 0x5b, 0x49, - 0x82, 0xf7, 0xed, 0xc4, 0xd5, 0x94, 0xa2, 0x74, 0xf5, 0x7b, 0x05, 0x5a, 0xaa, 0x90, 0x47, 0x2c, - 0xb0, 0x63, 0x0b, 0x19, 0xf9, 0x04, 0xea, 0x89, 0x08, 0x1f, 0x5f, 0xc8, 0x4d, 0x2d, 0xc5, 0xee, - 0xdb, 0xe4, 0x63, 0x58, 0x0e, 0x62, 0x1e, 0xc6, 0x3c, 0x9a, 0xb1, 0xc7, 0x7f, 0xa0, 0xcc, 0xa5, - 0x03, 0x0f, 0x0f, 0x69, 0x68, 0x2a, 0xa8, 0xfe, 0x0a, 0x6e, 0x9b, 0xe8, 0xb8, 0x11, 0x47, 0xa6, - 0x22, 0x50, 0x09, 0xef, 0x26, 0xcb, 0x34, 0x3d, 0x52, 0x3d, 0xb5, 0x39, 0xa7, 0xa7, 0x32, 0x7a, - 0xce, 0xd2, 0xdf, 0xe6, 0xf9, 0x3d, 0x0d, 0xfc, 0x28, 0x1e, 0x5d, 0x22, 0xbf, 0x6d, 0x58, 0x72, - 0xfd, 0x42, 0x7a, 0x77, 0xa6, 0x48, 0x47, 0x94, 0xd1, 0x11, 0x72, 0x64, 0x49, 0x7e, 0x12, 0x5a, - 0x4c, 0x4f, 0x05, 0x50, 0x48, 0xcf, 0x92, 0x47, 0x17, 0x49, 0x2f, 0xa3, 0xe7, 0x2c, 0x9d, 0x40, - 0x4b, 0xa9, 0xab, 0x6f, 0xba, 0xf5, 0xe7, 0x62, 0x9e, 0x73, 0x6a, 0x64, 0x63, 0xe2, 0xc0, 0xb5, - 0xc9, 0x0d, 0x4e, 0xba, 0x17, 0xfd, 0x21, 0xd1, 0x7e, 0x70, 0x01, 0xa4, 0xec, 0xa7, 0x2b, 0xe4, - 0x17, 0x68, 0x14, 0x76, 0x2e, 0x79, 0xaf, 0x84, 0x7b, 0x7e, 0xef, 0xb7, 0xef, 0xbf, 0x0b, 0x96, - 0xe9, 0xdb, 0xd0, 0x9c, 0x98, 0x1a, 0xf2, 0xfe, 0xcc, 0xe8, 0x26, 0xc7, 0xa7, 0xdd, 0x7d, 0x37, - 0xb0, 0xe8, 0x65, 0x62, 0x60, 0x4a, 0xbd, 0x94, 0x0d, 0x69, 0xa9, 0x97, 0xf2, 0xd9, 0xbb, 0x42, - 0xbe, 0x85, 0xa5, 0x74, 0xef, 0x90, 0x4e, 0xd9, 0x77, 0x2f, 0xee, 0xc4, 0xf6, 0xbd, 0x39, 0x88, - 0x4c, 0x10, 0xf3, 0x76, 0xc8, 0xa6, 0xf9, 0x61, 0x09, 0x71, 0xc6, 0xc0, 0xb5, 0x37, 0xe7, 0x60, - 0xcb, 0xdd, 0x64, 0x43, 0x35, 0xcf, 0xcd, 0x54, 0xe3, 0x5f, 0xd0, 0xcd, 0x97, 0x5f, 0xfc, 0xfc, - 0x99, 0xe3, 0xf2, 0x93, 0x78, 0x60, 0x58, 0xc1, 0xa8, 0x27, 0x28, 0x01, 0x73, 0xd2, 0x87, 0x5e, - 0xf6, 0x9f, 0xc3, 0x41, 0xbf, 0x17, 0x0e, 0x3e, 0x72, 0x82, 0xde, 0xb9, 0xff, 0x5c, 0x83, 0x25, - 0xf1, 0xc3, 0x67, 0xfb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x45, 0x25, 0x8b, 0xe7, 0x8f, 0x0d, - 0x00, 0x00, + // 1351 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x5f, 0x8f, 0xdb, 0xc4, + 0x16, 0xaf, 0x37, 0xfb, 0x2f, 0x27, 0x9b, 0x76, 0x3b, 0xdd, 0xbb, 0xcd, 0xa6, 0xbd, 0xb7, 0xa9, + 0xab, 0xdb, 0x9b, 0xf6, 0x82, 0x2d, 0xb6, 0x08, 0xda, 0xa2, 0x02, 0x4b, 0x5b, 0xc1, 0xd2, 0x6d, + 0xbb, 0x75, 0x57, 0x80, 0x56, 0x95, 0xa2, 0x89, 0x3d, 0xf1, 0x0e, 0xeb, 0xd8, 0xee, 0x78, 0xb2, + 0x25, 0xaa, 0xaa, 0xa2, 0xbe, 0x22, 0x51, 0x04, 0x0f, 0x3c, 0xf1, 0x8c, 0xc4, 0x57, 0xe0, 0x33, + 0x20, 0x21, 0xf1, 0xc8, 0x2b, 0x12, 0x6f, 0x7c, 0x06, 0xe4, 0xf1, 0x8c, 0xed, 0x24, 0x4e, 0x36, + 0x62, 0x79, 0xe0, 0xcd, 0x73, 0xce, 0xef, 0xfc, 0xf9, 0x1d, 0x9f, 0x39, 0xc7, 0x09, 0x9c, 0xef, + 0x78, 0x7d, 0x4e, 0xa8, 0xe3, 0x99, 0x98, 0x71, 0xda, 0xc1, 0x36, 0x4f, 0x1f, 0x22, 0x23, 0x64, + 0x01, 0x0f, 0xd0, 0x49, 0x05, 0x31, 0x94, 0xa6, 0xbe, 0xe6, 0x06, 0x81, 0xeb, 0x11, 0x53, 0x00, + 0xda, 0xbd, 0x8e, 0x89, 0xfd, 0x7e, 0x82, 0xae, 0x9f, 0x95, 0x2a, 0x1c, 0x52, 0x13, 0xfb, 0x7e, + 0xc0, 0x31, 0xa7, 0x81, 0x2f, 0x7d, 0xd5, 0x1b, 0x59, 0x38, 0xa7, 0x4b, 0x7d, 0xd3, 0xc3, 0x3d, + 0xdf, 0xde, 0x6b, 0x85, 0x1e, 0xf6, 0x95, 0x7d, 0x8a, 0xb0, 0x03, 0x46, 0x4c, 0x8f, 0x72, 0xc2, + 0xb0, 0xa7, 0xec, 0xd7, 0x06, 0xb5, 0xbc, 0x1f, 0x12, 0xa5, 0xfa, 0xcf, 0xa0, 0x8a, 0x3a, 0xc4, + 0xe7, 0xb4, 0x43, 0x09, 0x93, 0xfa, 0x73, 0x83, 0x7a, 0xc5, 0xa5, 0x45, 0x1d, 0x09, 0xf8, 0xf7, + 0x90, 0x03, 0x9f, 0x13, 0xd6, 0xc1, 0x36, 0x49, 0xd4, 0xfa, 0x4b, 0x0d, 0x16, 0x37, 0xa4, 0x11, + 0xba, 0x0e, 0x95, 0x9c, 0x83, 0x9a, 0xd6, 0xd0, 0x9a, 0x95, 0xf5, 0x35, 0x23, 0xad, 0x54, 0xec, + 0xc1, 0x50, 0xe8, 0xcd, 0x5b, 0x16, 0x28, 0xf4, 0xa6, 0x83, 0xae, 0xc0, 0x6c, 0x14, 0x12, 0xbb, + 0x36, 0x23, 0x8c, 0xce, 0x19, 0x23, 0xe5, 0x4d, 0x0d, 0x1f, 0x86, 0xc4, 0xb6, 0x04, 0x18, 0x21, + 0x98, 0xe5, 0xd8, 0x8d, 0x6a, 0xa5, 0x46, 0xa9, 0x59, 0xb6, 0xc4, 0xb3, 0xfe, 0xf3, 0x0c, 0xfc, + 0xeb, 0x26, 0x23, 0x98, 0x13, 0x65, 0x60, 0x91, 0xc7, 0x3d, 0x12, 0x71, 0x74, 0x03, 0x96, 0xd2, + 0xf4, 0xf6, 0x49, 0x5f, 0xe6, 0x57, 0x1f, 0x93, 0xdf, 0x1d, 0xd2, 0xb7, 0x52, 0x3a, 0x77, 0x48, + 0x1f, 0xd5, 0x60, 0xe1, 0x80, 0xb0, 0x88, 0x06, 0x7e, 0xad, 0xd4, 0xd0, 0x9a, 0x65, 0x4b, 0x1d, + 0xff, 0x5a, 0xee, 0x9f, 0x00, 0x84, 0xb1, 0x5e, 0x34, 0x42, 0x6d, 0xb6, 0x51, 0x6a, 0x56, 0xd6, + 0xaf, 0x16, 0x98, 0x16, 0x72, 0x31, 0xb6, 0x53, 0xd3, 0xdb, 0x3e, 0x67, 0x7d, 0x2b, 0xe7, 0x0b, + 0x2d, 0x43, 0x89, 0x63, 0xb7, 0x36, 0x27, 0x92, 0x8c, 0x1f, 0xeb, 0x37, 0xe0, 0xc4, 0x90, 0x41, + 0x0c, 0x52, 0x35, 0x28, 0x5b, 0xf1, 0x23, 0x5a, 0x81, 0xb9, 0x03, 0xec, 0xf5, 0x88, 0xa0, 0x51, + 0xb6, 0x92, 0xc3, 0xf5, 0x99, 0xab, 0x9a, 0xfe, 0x6b, 0x09, 0x96, 0xf2, 0x0c, 0xd0, 0x2b, 0x0a, + 0x9a, 0x94, 0x70, 0x75, 0xa8, 0x84, 0x5b, 0x49, 0x7b, 0x4a, 0x17, 0xc8, 0x80, 0xd9, 0xb8, 0x25, + 0x65, 0x79, 0xea, 0xc5, 0xe0, 0x9d, 0x7e, 0x48, 0x2c, 0x81, 0x43, 0x77, 0xe1, 0x38, 0xc7, 0xd1, + 0x7e, 0x8b, 0x7c, 0x46, 0xec, 0x5e, 0x9c, 0xb2, 0xa0, 0x52, 0x59, 0xbf, 0x38, 0x64, 0xb9, 0x83, + 0xa3, 0xfd, 0xdb, 0x0a, 0xb3, 0x99, 0x76, 0xb6, 0x55, 0xe5, 0x79, 0x05, 0xfa, 0x00, 0xca, 0x99, + 0xa7, 0x79, 0xe1, 0xe9, 0xf2, 0x90, 0xa7, 0x8f, 0x03, 0xb6, 0xdf, 0xf1, 0x82, 0x27, 0x45, 0xde, + 0x32, 0x63, 0x74, 0x16, 0xca, 0x21, 0xa3, 0xbe, 0x4d, 0x43, 0xec, 0xd5, 0x16, 0x44, 0x95, 0x32, + 0x01, 0xfa, 0x3f, 0x9c, 0x8c, 0xf6, 0x02, 0xc6, 0x5b, 0x0e, 0x89, 0x6c, 0x46, 0x43, 0x11, 0x6f, + 0x51, 0xa0, 0x96, 0x85, 0xe2, 0x56, 0x26, 0x47, 0x97, 0x60, 0xd9, 0x0b, 0x7c, 0x77, 0x00, 0x5b, + 0x16, 0xd8, 0x13, 0xb1, 0x3c, 0x0f, 0xbd, 0x06, 0xd5, 0x5e, 0x44, 0x58, 0xab, 0x4b, 0x38, 0x76, + 0x30, 0xc7, 0x35, 0x10, 0x1c, 0x56, 0x8c, 0x64, 0xa6, 0x18, 0x6a, 0xdc, 0x18, 0x1b, 0x7e, 0xdf, + 0x5a, 0x8a, 0xa1, 0x77, 0x25, 0x12, 0x5d, 0x80, 0xaa, 0xb2, 0x6a, 0x89, 0x57, 0x50, 0x11, 0x21, + 0x96, 0x94, 0x30, 0x2e, 0xba, 0xfe, 0x00, 0x56, 0x87, 0x7b, 0x2c, 0x0a, 0x03, 0x3f, 0x22, 0xe8, + 0x4d, 0x58, 0x54, 0x6d, 0x28, 0xdf, 0xf4, 0x99, 0x09, 0xbd, 0x6d, 0xa5, 0x60, 0xbd, 0x0d, 0xe8, + 0x7d, 0xc2, 0x87, 0xef, 0xdf, 0x3a, 0xcc, 0x3d, 0xee, 0x11, 0xa6, 0x2e, 0xde, 0xd9, 0x31, 0x17, + 0xef, 0x41, 0x8c, 0xb1, 0x12, 0x68, 0x7c, 0xe9, 0x1c, 0xc2, 0x31, 0xf5, 0x22, 0xd1, 0x3e, 0x8b, + 0x96, 0x3a, 0xea, 0xf7, 0xe0, 0xd4, 0x40, 0x8c, 0xa3, 0xe6, 0xbc, 0x05, 0xb5, 0x2d, 0x1a, 0xa5, + 0x0e, 0xef, 0xe1, 0x2e, 0x89, 0x54, 0xe6, 0x35, 0x58, 0x08, 0x59, 0xf0, 0x29, 0x91, 0x3e, 0xcb, + 0x96, 0x3a, 0xa2, 0x55, 0x98, 0x77, 0x82, 0x2e, 0xa6, 0xbe, 0xbc, 0x35, 0xf2, 0xa4, 0x3f, 0x82, + 0xb5, 0x02, 0x6f, 0x32, 0xc7, 0x77, 0xa0, 0x9a, 0x1f, 0x44, 0x51, 0x4d, 0x13, 0xb7, 0x7f, 0xd2, + 0x24, 0x5a, 0xca, 0x4d, 0xa2, 0x48, 0xff, 0x4e, 0x83, 0xd5, 0x87, 0x04, 0x33, 0x7b, 0x4f, 0x61, + 0xa2, 0xbf, 0x6f, 0xc8, 0x75, 0xa8, 0xc7, 0x09, 0x8b, 0x24, 0x21, 0x75, 0x8c, 0xc7, 0x03, 0x0f, + 0xf6, 0x89, 0x1a, 0x7e, 0xc9, 0x21, 0x96, 0x7a, 0xb4, 0x4b, 0x79, 0x6d, 0xb6, 0xa1, 0x35, 0xe7, + 0xac, 0xe4, 0xa0, 0xef, 0xc0, 0xe9, 0x91, 0xf4, 0x24, 0xf7, 0x6b, 0x50, 0x4e, 0x57, 0xa9, 0xe4, + 0x3d, 0xf1, 0x05, 0x65, 0x68, 0xfd, 0x39, 0x54, 0x37, 0x1c, 0x67, 0x07, 0xbb, 0x8a, 0xeb, 0x51, + 0xf6, 0x4d, 0xe1, 0xb4, 0x8b, 0x6f, 0x78, 0x70, 0x40, 0xd8, 0x13, 0x46, 0x39, 0x11, 0x44, 0x17, + 0xad, 0x4c, 0xa0, 0x2f, 0xc3, 0x71, 0x95, 0x40, 0xc2, 0x46, 0x6f, 0xc3, 0x4a, 0x72, 0x77, 0x76, + 0x18, 0x75, 0x5d, 0xc2, 0x54, 0x66, 0x1f, 0xc2, 0x29, 0x9e, 0x48, 0x5a, 0xb9, 0x65, 0x3e, 0xfa, + 0x32, 0xc4, 0xbe, 0x37, 0xb6, 0x04, 0x64, 0xdb, 0xc3, 0xbe, 0x75, 0x52, 0x9a, 0x65, 0x22, 0xfd, + 0xb4, 0xda, 0x67, 0x69, 0x0c, 0x19, 0x7c, 0x1b, 0x56, 0x6e, 0x11, 0x8f, 0x8c, 0x04, 0xbf, 0x0a, + 0xa0, 0x82, 0x8f, 0xad, 0x4a, 0x7e, 0xc0, 0x49, 0xf0, 0xa6, 0x13, 0x87, 0x1a, 0xf2, 0x28, 0x43, + 0x7d, 0xae, 0xc1, 0xb2, 0x2a, 0xe4, 0x36, 0x0b, 0x9c, 0x9e, 0x4d, 0x18, 0x7a, 0x03, 0xca, 0xb1, + 0x13, 0xde, 0x9f, 0x2a, 0xcc, 0x62, 0x82, 0xdd, 0x74, 0xd0, 0xeb, 0xb0, 0x10, 0xf4, 0x78, 0xd8, + 0xe3, 0xd1, 0x98, 0x95, 0xf0, 0x11, 0x66, 0x14, 0xb7, 0x3d, 0x72, 0x17, 0x87, 0x96, 0x82, 0xea, + 0x8f, 0xe0, 0xb4, 0x45, 0x5c, 0x1a, 0x71, 0xc2, 0x54, 0x06, 0x8a, 0xf0, 0x46, 0x3c, 0x97, 0x13, + 0x91, 0xea, 0xa9, 0x0b, 0x13, 0x7a, 0x2a, 0x35, 0xcf, 0xac, 0xf4, 0xe7, 0x19, 0xbf, 0x9b, 0x81, + 0x1f, 0xf5, 0xba, 0x47, 0xe0, 0x77, 0x05, 0xe6, 0xa9, 0x9f, 0xa3, 0x77, 0x66, 0xc8, 0x68, 0x1b, + 0x33, 0xdc, 0x25, 0x9c, 0xb0, 0x98, 0x9f, 0x84, 0xe6, 0xe9, 0xa9, 0x04, 0x72, 0xf4, 0x6c, 0x29, + 0x9a, 0x86, 0x5e, 0x6a, 0x9e, 0x59, 0xe9, 0x08, 0x96, 0x95, 0x77, 0xf5, 0x4e, 0xd7, 0x7f, 0xac, + 0x64, 0x9c, 0x13, 0x25, 0xeb, 0x23, 0x17, 0x8e, 0x0f, 0x2e, 0x03, 0xd4, 0x9c, 0xf6, 0x9b, 0xa4, + 0x7e, 0x69, 0x0a, 0xa4, 0xec, 0xa7, 0x63, 0xe8, 0xa7, 0x59, 0xa8, 0xe4, 0xe6, 0x37, 0xfa, 0x6f, + 0x81, 0xf1, 0xe8, 0x0e, 0xa9, 0x5f, 0x3c, 0x0c, 0x26, 0x03, 0xfc, 0x51, 0x7a, 0xf1, 0xcb, 0x6f, + 0xdf, 0xcc, 0xfc, 0x5e, 0x42, 0xc8, 0x8c, 0x37, 0x9d, 0x79, 0xf0, 0x5a, 0xf6, 0x09, 0xbf, 0xfb, + 0x83, 0x86, 0xbe, 0xd7, 0x46, 0xe4, 0x26, 0x75, 0xcc, 0xa7, 0x62, 0xed, 0x18, 0xf9, 0xef, 0xe0, + 0xfc, 0x38, 0x35, 0xe4, 0xdc, 0x7f, 0x76, 0x28, 0x30, 0xd9, 0x03, 0x87, 0xe3, 0x7c, 0xdc, 0x25, + 0x85, 0x28, 0xf9, 0x71, 0xf9, 0x6c, 0xf7, 0x4b, 0x0d, 0x7d, 0xf1, 0x4f, 0x4a, 0x76, 0xf7, 0x6b, + 0x0d, 0xbd, 0x2c, 0x48, 0x88, 0x63, 0x77, 0xc4, 0x01, 0xc7, 0xee, 0x94, 0x29, 0x8d, 0x20, 0xc7, + 0xe5, 0x34, 0x02, 0x14, 0x49, 0xa1, 0x17, 0x33, 0x70, 0x62, 0x68, 0xe7, 0xa0, 0xa2, 0x86, 0x2c, + 0x5e, 0x9b, 0xf5, 0xcb, 0xd3, 0x40, 0x65, 0x6f, 0x7d, 0xab, 0x89, 0xde, 0xfa, 0x4a, 0x43, 0xf7, + 0xd3, 0x2a, 0x88, 0x24, 0xcd, 0xa7, 0x63, 0xb8, 0x16, 0x13, 0x2b, 0x28, 0xed, 0x0d, 0xf4, 0xd6, + 0x11, 0x5c, 0x22, 0x07, 0xaa, 0x03, 0xab, 0x02, 0xfd, 0x6f, 0xec, 0x95, 0x1c, 0xdc, 0x19, 0xf5, + 0xe6, 0xe1, 0xc0, 0xf4, 0xea, 0x3a, 0x50, 0x1d, 0xd8, 0x12, 0x85, 0x51, 0x8a, 0x36, 0x53, 0x61, + 0x94, 0xe2, 0x85, 0x73, 0x0c, 0xdd, 0x87, 0xf9, 0x64, 0xd9, 0xa2, 0x46, 0xd1, 0xb0, 0xcb, 0x7f, + 0x08, 0xd4, 0xcf, 0x4f, 0x40, 0xa4, 0x0e, 0x49, 0x36, 0x03, 0xd3, 0x15, 0x56, 0xf4, 0xda, 0xc7, + 0x6c, 0x99, 0xfa, 0x85, 0x09, 0xd8, 0xe2, 0x30, 0xe9, 0x26, 0x99, 0x14, 0x66, 0x68, 0xda, 0x4f, + 0x19, 0xe6, 0xbd, 0x77, 0x77, 0xdf, 0x76, 0x29, 0xdf, 0xeb, 0xb5, 0x0d, 0x3b, 0xe8, 0x9a, 0xc2, + 0x24, 0x60, 0x6e, 0xf2, 0x60, 0xa6, 0xbf, 0xd9, 0x5d, 0xe2, 0x9b, 0x61, 0xfb, 0x55, 0x37, 0x30, + 0x47, 0xfe, 0xd1, 0x68, 0xcf, 0x8b, 0x1f, 0x0e, 0x57, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x10, + 0xd8, 0xe7, 0x70, 0xed, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1108,6 +1146,7 @@ const _ = grpc.SupportPackageIsVersion4 type ArtifactRegistryClient interface { CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) + SearchArtifacts(ctx context.Context, in *SearchArtifactsRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) CreateTrigger(ctx context.Context, in *CreateTriggerRequest, opts ...grpc.CallOption) (*CreateTriggerResponse, error) DeleteTrigger(ctx context.Context, in *DeleteTriggerRequest, opts ...grpc.CallOption) (*DeleteTriggerResponse, error) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) @@ -1141,6 +1180,15 @@ func (c *artifactRegistryClient) GetArtifact(ctx context.Context, in *GetArtifac return out, nil } +func (c *artifactRegistryClient) SearchArtifacts(ctx context.Context, in *SearchArtifactsRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) { + out := new(SearchArtifactsResponse) + err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/SearchArtifacts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *artifactRegistryClient) CreateTrigger(ctx context.Context, in *CreateTriggerRequest, opts ...grpc.CallOption) (*CreateTriggerResponse, error) { out := new(CreateTriggerResponse) err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/CreateTrigger", in, out, opts...) @@ -1190,6 +1238,7 @@ func (c *artifactRegistryClient) RegisterConsumer(ctx context.Context, in *Regis type ArtifactRegistryServer interface { CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) + SearchArtifacts(context.Context, *SearchArtifactsRequest) (*SearchArtifactsResponse, error) CreateTrigger(context.Context, *CreateTriggerRequest) (*CreateTriggerResponse, error) DeleteTrigger(context.Context, *DeleteTriggerRequest) (*DeleteTriggerResponse, error) AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) @@ -1207,6 +1256,9 @@ func (*UnimplementedArtifactRegistryServer) CreateArtifact(ctx context.Context, func (*UnimplementedArtifactRegistryServer) GetArtifact(ctx context.Context, req *GetArtifactRequest) (*GetArtifactResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") } +func (*UnimplementedArtifactRegistryServer) SearchArtifacts(ctx context.Context, req *SearchArtifactsRequest) (*SearchArtifactsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchArtifacts not implemented") +} func (*UnimplementedArtifactRegistryServer) CreateTrigger(ctx context.Context, req *CreateTriggerRequest) (*CreateTriggerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTrigger not implemented") } @@ -1263,6 +1315,24 @@ func _ArtifactRegistry_GetArtifact_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _ArtifactRegistry_SearchArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchArtifactsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactRegistryServer).SearchArtifacts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.artifact.ArtifactRegistry/SearchArtifacts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactRegistryServer).SearchArtifacts(ctx, req.(*SearchArtifactsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _ArtifactRegistry_CreateTrigger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateTriggerRequest) if err := dec(in); err != nil { @@ -1365,6 +1435,10 @@ var _ArtifactRegistry_serviceDesc = grpc.ServiceDesc{ MethodName: "GetArtifact", Handler: _ArtifactRegistry_GetArtifact_Handler, }, + { + MethodName: "SearchArtifacts", + Handler: _ArtifactRegistry_SearchArtifacts_Handler, + }, { MethodName: "CreateTrigger", Handler: _ArtifactRegistry_CreateTrigger_Handler, diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go new file mode 100644 index 0000000000..8c5f610e15 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go @@ -0,0 +1,538 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/artifact/artifacts.proto + +/* +Package artifact is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package artifact + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/status" +) + +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray + +var ( + filter_ArtifactRegistry_GetArtifact_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_ArtifactRegistry_GetArtifact_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetArtifactRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_ArtifactRegistry_GetArtifact_1 = &utilities.DoubleArray{Encoding: map[string]int{"query": 0, "artifact_id": 1, "artifact_key": 2, "project": 3, "domain": 4, "name": 5, "version": 6}, Base: []int{1, 13, 1, 1, 1, 4, 3, 2, 0, 0, 9, 7, 6, 0, 9, 9, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 5, 8, 2, 11, 12, 13, 2, 15, 16}} +) + +func request_ArtifactRegistry_GetArtifact_1(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetArtifactRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["query.artifact_id.artifact_key.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.project", err) + } + + val, ok = pathParams["query.artifact_id.artifact_key.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.domain", err) + } + + val, ok = pathParams["query.artifact_id.artifact_key.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.name", err) + } + + val, ok = pathParams["query.artifact_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_ArtifactRegistry_GetArtifact_2 = &utilities.DoubleArray{Encoding: map[string]int{"query": 0, "artifact_id": 1, "artifact_key": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 9, 1, 1, 1, 4, 4, 0, 3, 0, 9, 7, 7, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 5, 7, 9, 2, 11, 12, 13}} +) + +func request_ArtifactRegistry_GetArtifact_2(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetArtifactRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["query.artifact_id.artifact_key.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.project", err) + } + + val, ok = pathParams["query.artifact_id.artifact_key.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.domain", err) + } + + val, ok = pathParams["query.artifact_id.artifact_key.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_2); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_ArtifactRegistry_GetArtifact_3 = &utilities.DoubleArray{Encoding: map[string]int{"query": 0, "artifact_tag": 1, "artifact_key": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 9, 1, 1, 1, 4, 4, 0, 3, 0, 9, 7, 7, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 5, 7, 9, 2, 11, 12, 13}} +) + +func request_ArtifactRegistry_GetArtifact_3(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetArtifactRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["query.artifact_tag.artifact_key.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_tag.artifact_key.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_tag.artifact_key.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_tag.artifact_key.project", err) + } + + val, ok = pathParams["query.artifact_tag.artifact_key.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_tag.artifact_key.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_tag.artifact_key.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_tag.artifact_key.domain", err) + } + + val, ok = pathParams["query.artifact_tag.artifact_key.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_tag.artifact_key.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_tag.artifact_key.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_tag.artifact_key.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_3); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_ArtifactRegistry_SearchArtifacts_0 = &utilities.DoubleArray{Encoding: map[string]int{"artifact_key": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_ArtifactRegistry_SearchArtifacts_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SearchArtifactsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["artifact_key.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.project", err) + } + + val, ok = pathParams["artifact_key.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.domain", err) + } + + val, ok = pathParams["artifact_key.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_SearchArtifacts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.SearchArtifacts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_ArtifactRegistry_SearchArtifacts_1 = &utilities.DoubleArray{Encoding: map[string]int{"artifact_key": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_ArtifactRegistry_SearchArtifacts_1(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq SearchArtifactsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["artifact_key.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.project", err) + } + + val, ok = pathParams["artifact_key.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_SearchArtifacts_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.SearchArtifacts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// RegisterArtifactRegistryHandlerFromEndpoint is same as RegisterArtifactRegistryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterArtifactRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterArtifactRegistryHandler(ctx, mux, conn) +} + +// RegisterArtifactRegistryHandler registers the http handlers for service ArtifactRegistry to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterArtifactRegistryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterArtifactRegistryHandlerClient(ctx, mux, NewArtifactRegistryClient(conn)) +} + +// RegisterArtifactRegistryHandlerClient registers the http handlers for service ArtifactRegistry +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArtifactRegistryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArtifactRegistryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "ArtifactRegistryClient" to call the correct interceptors. +func RegisterArtifactRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactRegistryClient) error { + + mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_GetArtifact_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_GetArtifact_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_GetArtifact_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_GetArtifact_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_GetArtifact_2(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_GetArtifact_2(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_3, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_GetArtifact_3(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_GetArtifact_3(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ArtifactRegistry_SearchArtifacts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_SearchArtifacts_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_SearchArtifacts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_ArtifactRegistry_SearchArtifacts_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ArtifactRegistry_SearchArtifacts_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_ArtifactRegistry_SearchArtifacts_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_ArtifactRegistry_GetArtifact_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"data", "v1", "artifacts"}, "")) + + pattern_ArtifactRegistry_GetArtifact_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"data", "v1", "artifact", "id", "query.artifact_id.artifact_key.project", "query.artifact_id.artifact_key.domain", "query.artifact_id.artifact_key.name", "query.artifact_id.version"}, "")) + + pattern_ArtifactRegistry_GetArtifact_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"data", "v1", "artifact", "id", "query.artifact_id.artifact_key.project", "query.artifact_id.artifact_key.domain", "query.artifact_id.artifact_key.name"}, "")) + + pattern_ArtifactRegistry_GetArtifact_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"data", "v1", "artifact", "tag", "query.artifact_tag.artifact_key.project", "query.artifact_tag.artifact_key.domain", "query.artifact_tag.artifact_key.name"}, "")) + + pattern_ArtifactRegistry_SearchArtifacts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"data", "v1", "query", "artifact_key.project", "artifact_key.domain", "artifact_key.name"}, "")) + + pattern_ArtifactRegistry_SearchArtifacts_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"data", "v1", "query", "artifact_key.project", "artifact_key.domain"}, "")) +) + +var ( + forward_ArtifactRegistry_GetArtifact_0 = runtime.ForwardResponseMessage + + forward_ArtifactRegistry_GetArtifact_1 = runtime.ForwardResponseMessage + + forward_ArtifactRegistry_GetArtifact_2 = runtime.ForwardResponseMessage + + forward_ArtifactRegistry_GetArtifact_3 = runtime.ForwardResponseMessage + + forward_ArtifactRegistry_SearchArtifacts_0 = runtime.ForwardResponseMessage + + forward_ArtifactRegistry_SearchArtifacts_1 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go index 1c7b6d40b3..41775e7916 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.validate.go @@ -722,17 +722,17 @@ var _ interface { ErrorName() string } = ListArtifactNamesResponseValidationError{} -// Validate checks the field values on ListArtifactsRequest with the rules +// Validate checks the field values on SearchArtifactsRequest with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *ListArtifactsRequest) Validate() error { +func (m *SearchArtifactsRequest) Validate() error { if m == nil { return nil } if v, ok := interface{}(m.GetArtifactKey()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return ListArtifactsRequestValidationError{ + return SearchArtifactsRequestValidationError{ field: "ArtifactKey", reason: "embedded message failed validation", cause: err, @@ -740,12 +740,18 @@ func (m *ListArtifactsRequest) Validate() error { } } + // no validation rules for Filters + + // no validation rules for Token + + // no validation rules for Limit + return nil } -// ListArtifactsRequestValidationError is the validation error returned by -// ListArtifactsRequest.Validate if the designated constraints aren't met. -type ListArtifactsRequestValidationError struct { +// SearchArtifactsRequestValidationError is the validation error returned by +// SearchArtifactsRequest.Validate if the designated constraints aren't met. +type SearchArtifactsRequestValidationError struct { field string reason string cause error @@ -753,24 +759,24 @@ type ListArtifactsRequestValidationError struct { } // Field function returns field value. -func (e ListArtifactsRequestValidationError) Field() string { return e.field } +func (e SearchArtifactsRequestValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ListArtifactsRequestValidationError) Reason() string { return e.reason } +func (e SearchArtifactsRequestValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ListArtifactsRequestValidationError) Cause() error { return e.cause } +func (e SearchArtifactsRequestValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ListArtifactsRequestValidationError) Key() bool { return e.key } +func (e SearchArtifactsRequestValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ListArtifactsRequestValidationError) ErrorName() string { - return "ListArtifactsRequestValidationError" +func (e SearchArtifactsRequestValidationError) ErrorName() string { + return "SearchArtifactsRequestValidationError" } // Error satisfies the builtin error interface -func (e ListArtifactsRequestValidationError) Error() string { +func (e SearchArtifactsRequestValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -782,14 +788,14 @@ func (e ListArtifactsRequestValidationError) Error() string { } return fmt.Sprintf( - "invalid %sListArtifactsRequest.%s: %s%s", + "invalid %sSearchArtifactsRequest.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ListArtifactsRequestValidationError{} +var _ error = SearchArtifactsRequestValidationError{} var _ interface { Field() string @@ -797,12 +803,12 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ListArtifactsRequestValidationError{} +} = SearchArtifactsRequestValidationError{} -// Validate checks the field values on ListArtifactsResponse with the rules +// Validate checks the field values on SearchArtifactsResponse with the rules // defined in the proto definition for this message. If any rules are // violated, an error is returned. -func (m *ListArtifactsResponse) Validate() error { +func (m *SearchArtifactsResponse) Validate() error { if m == nil { return nil } @@ -812,7 +818,7 @@ func (m *ListArtifactsResponse) Validate() error { if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { - return ListArtifactsResponseValidationError{ + return SearchArtifactsResponseValidationError{ field: fmt.Sprintf("Artifacts[%v]", idx), reason: "embedded message failed validation", cause: err, @@ -825,9 +831,9 @@ func (m *ListArtifactsResponse) Validate() error { return nil } -// ListArtifactsResponseValidationError is the validation error returned by -// ListArtifactsResponse.Validate if the designated constraints aren't met. -type ListArtifactsResponseValidationError struct { +// SearchArtifactsResponseValidationError is the validation error returned by +// SearchArtifactsResponse.Validate if the designated constraints aren't met. +type SearchArtifactsResponseValidationError struct { field string reason string cause error @@ -835,24 +841,24 @@ type ListArtifactsResponseValidationError struct { } // Field function returns field value. -func (e ListArtifactsResponseValidationError) Field() string { return e.field } +func (e SearchArtifactsResponseValidationError) Field() string { return e.field } // Reason function returns reason value. -func (e ListArtifactsResponseValidationError) Reason() string { return e.reason } +func (e SearchArtifactsResponseValidationError) Reason() string { return e.reason } // Cause function returns cause value. -func (e ListArtifactsResponseValidationError) Cause() error { return e.cause } +func (e SearchArtifactsResponseValidationError) Cause() error { return e.cause } // Key function returns key value. -func (e ListArtifactsResponseValidationError) Key() bool { return e.key } +func (e SearchArtifactsResponseValidationError) Key() bool { return e.key } // ErrorName returns error name. -func (e ListArtifactsResponseValidationError) ErrorName() string { - return "ListArtifactsResponseValidationError" +func (e SearchArtifactsResponseValidationError) ErrorName() string { + return "SearchArtifactsResponseValidationError" } // Error satisfies the builtin error interface -func (e ListArtifactsResponseValidationError) Error() string { +func (e SearchArtifactsResponseValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) @@ -864,14 +870,14 @@ func (e ListArtifactsResponseValidationError) Error() string { } return fmt.Sprintf( - "invalid %sListArtifactsResponse.%s: %s%s", + "invalid %sSearchArtifactsResponse.%s: %s%s", key, e.field, e.reason, cause) } -var _ error = ListArtifactsResponseValidationError{} +var _ error = SearchArtifactsResponseValidationError{} var _ interface { Field() string @@ -879,7 +885,7 @@ var _ interface { Key() bool Cause() error ErrorName() string -} = ListArtifactsResponseValidationError{} +} = SearchArtifactsResponseValidationError{} // Validate checks the field values on AddTagRequest with the rules defined in // the proto definition for this message. If any rules are violated, an error diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json index 99a3cafb52..a93ff755e6 100644 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json +++ b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json @@ -14,7 +14,575 @@ "produces": [ "application/json" ], - "paths": {}, + "paths": { + "/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}": { + "get": { + "operationId": "GetArtifact3", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactGetArtifactResponse" + } + } + }, + "parameters": [ + { + "name": "query.artifact_id.artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_id.artifact_key.domain", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_id.artifact_key.name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_id.version", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.static_value", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.artifact_tag.value.triggered_binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.input_binding.var", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.uri", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "details", + "description": "If false, then long_description is not returned.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } + }, + "/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}": { + "get": { + "operationId": "GetArtifact2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactGetArtifactResponse" + } + } + }, + "parameters": [ + { + "name": "query.artifact_id.artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_id.artifact_key.domain", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_id.artifact_key.name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_id.version", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_tag.value.static_value", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.artifact_tag.value.triggered_binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.input_binding.var", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.uri", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "details", + "description": "If false, then long_description is not returned.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } + }, + "/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}": { + "get": { + "operationId": "GetArtifact4", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactGetArtifactResponse" + } + } + }, + "parameters": [ + { + "name": "query.artifact_tag.artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_tag.artifact_key.domain", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_tag.artifact_key.name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "query.artifact_id.version", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.static_value", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.artifact_tag.value.triggered_binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.input_binding.var", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.uri", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "details", + "description": "If false, then long_description is not returned.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } + }, + "/data/v1/artifacts": { + "get": { + "operationId": "GetArtifact", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactGetArtifactResponse" + } + } + }, + "parameters": [ + { + "name": "query.artifact_id.artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_id.artifact_key.domain", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_id.artifact_key.name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_id.version", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.artifact_key.domain", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.artifact_key.name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.static_value", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.artifact_tag.value.triggered_binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.triggered_binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.artifact_tag.value.input_binding.var", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.uri", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.index", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "query.binding.partition_key", + "description": "These two fields are only relevant in the partition value case.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "query.binding.transform", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "details", + "description": "If false, then long_description is not returned.", + "in": "query", + "required": false, + "type": "boolean", + "format": "boolean" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } + }, + "/data/v1/query/{artifact_key.project}/{artifact_key.domain}": { + "get": { + "operationId": "SearchArtifacts2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactSearchArtifactsResponse" + } + } + }, + "parameters": [ + { + "name": "artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "artifact_key.domain", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "artifact_key.name", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } + }, + "/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}": { + "get": { + "operationId": "SearchArtifacts", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/artifactSearchArtifactsResponse" + } + } + }, + "parameters": [ + { + "name": "artifact_key.project", + "description": "Project and domain and suffix needs to be unique across a given artifact store.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "artifact_key.domain", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "artifact_key.name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "filters", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "tags": [ + "ArtifactRegistry" + ] + } + } + }, "definitions": { "BlobTypeBlobDimensionality": { "type": "string", @@ -24,14 +592,6 @@ ], "default": "SINGLE" }, - "OAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, "QualityOfServiceTier": { "type": "string", "enum": [ @@ -541,6 +1101,17 @@ "artifactRegisterResponse": { "type": "object" }, + "artifactSearchArtifactsResponse": { + "type": "object", + "properties": { + "artifacts": { + "type": "array", + "items": { + "$ref": "#/definitions/artifactArtifact" + } + } + } + }, "coreArtifactBindingData": { "type": "object", "properties": { @@ -911,7 +1482,7 @@ "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" }, "type": { - "$ref": "#/definitions/OAuth2TokenRequestType", + "$ref": "#/definitions/coreOAuth2TokenRequestType", "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" }, "client": { @@ -929,6 +1500,14 @@ }, "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." }, + "coreOAuth2TokenRequestType": { + "type": "string", + "enum": [ + "CLIENT_CREDENTIALS" + ], + "default": "CLIENT_CREDENTIALS", + "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + }, "coreParameter": { "type": "object", "properties": { diff --git a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java b/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java index 127a733077..8bb0e8d292 100644 --- a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java +++ b/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java @@ -8126,8 +8126,8 @@ public flyteidl.artifact.Artifacts.ListArtifactNamesResponse getDefaultInstanceF } - public interface ListArtifactsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ListArtifactsRequest) + public interface SearchArtifactsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsRequest) com.google.protobuf.MessageOrBuilder { /** @@ -8142,20 +8142,47 @@ public interface ListArtifactsRequestOrBuilder extends * .flyteidl.core.ArtifactKey artifact_key = 1; */ flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder(); + + /** + * string filters = 2; + */ + java.lang.String getFilters(); + /** + * string filters = 2; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + * string token = 3; + */ + java.lang.String getToken(); + /** + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + * int32 limit = 4; + */ + int getLimit(); } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactsRequest} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} */ - public static final class ListArtifactsRequest extends + public static final class SearchArtifactsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ListArtifactsRequest) - ListArtifactsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsRequest) + SearchArtifactsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ListArtifactsRequest.newBuilder() to construct. - private ListArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SearchArtifactsRequest.newBuilder() to construct. + private SearchArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListArtifactsRequest() { + private SearchArtifactsRequest() { + filters_ = ""; + token_ = ""; } @java.lang.Override @@ -8163,7 +8190,7 @@ private ListArtifactsRequest() { getUnknownFields() { return this.unknownFields; } - private ListArtifactsRequest( + private SearchArtifactsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8195,6 +8222,23 @@ private ListArtifactsRequest( break; } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 32: { + + limit_ = input.readInt32(); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -8216,15 +8260,15 @@ private ListArtifactsRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactsRequest.class, flyteidl.artifact.Artifacts.ListArtifactsRequest.Builder.class); + flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); } public static final int ARTIFACT_KEY_FIELD_NUMBER = 1; @@ -8248,6 +8292,83 @@ public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { return getArtifactKey(); } + public static final int FILTERS_FIELD_NUMBER = 2; + private volatile java.lang.Object filters_; + /** + * string filters = 2; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + * string filters = 2; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 4; + private int limit_; + /** + * int32 limit = 4; + */ + public int getLimit() { + return limit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -8265,6 +8386,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (artifactKey_ != null) { output.writeMessage(1, getArtifactKey()); } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filters_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (limit_ != 0) { + output.writeInt32(4, limit_); + } unknownFields.writeTo(output); } @@ -8278,6 +8408,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getArtifactKey()); } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filters_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, limit_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -8288,16 +8428,22 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.ListArtifactsRequest)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.SearchArtifactsRequest)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.ListArtifactsRequest other = (flyteidl.artifact.Artifacts.ListArtifactsRequest) obj; + flyteidl.artifact.Artifacts.SearchArtifactsRequest other = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) obj; if (hasArtifactKey() != other.hasArtifactKey()) return false; if (hasArtifactKey()) { if (!getArtifactKey() .equals(other.getArtifactKey())) return false; } + if (!getFilters() + .equals(other.getFilters())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (getLimit() + != other.getLimit()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8313,74 +8459,80 @@ public int hashCode() { hash = (37 * hash) + ARTIFACT_KEY_FIELD_NUMBER; hash = (53 * hash) + getArtifactKey().hashCode(); } + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8393,7 +8545,7 @@ public static flyteidl.artifact.Artifacts.ListArtifactsRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.ListArtifactsRequest prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.SearchArtifactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -8409,26 +8561,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactsRequest} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ListArtifactsRequest) - flyteidl.artifact.Artifacts.ListArtifactsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsRequest) + flyteidl.artifact.Artifacts.SearchArtifactsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsRequest_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactsRequest.class, flyteidl.artifact.Artifacts.ListArtifactsRequest.Builder.class); + flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.ListArtifactsRequest.newBuilder() + // Construct using flyteidl.artifact.Artifacts.SearchArtifactsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -8452,23 +8604,29 @@ public Builder clear() { artifactKey_ = null; artifactKeyBuilder_ = null; } + filters_ = ""; + + token_ = ""; + + limit_ = 0; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsRequest_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ListArtifactsRequest.getDefaultInstance(); + public flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsRequest build() { - flyteidl.artifact.Artifacts.ListArtifactsRequest result = buildPartial(); + public flyteidl.artifact.Artifacts.SearchArtifactsRequest build() { + flyteidl.artifact.Artifacts.SearchArtifactsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8476,13 +8634,16 @@ public flyteidl.artifact.Artifacts.ListArtifactsRequest build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsRequest buildPartial() { - flyteidl.artifact.Artifacts.ListArtifactsRequest result = new flyteidl.artifact.Artifacts.ListArtifactsRequest(this); + public flyteidl.artifact.Artifacts.SearchArtifactsRequest buildPartial() { + flyteidl.artifact.Artifacts.SearchArtifactsRequest result = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(this); if (artifactKeyBuilder_ == null) { result.artifactKey_ = artifactKey_; } else { result.artifactKey_ = artifactKeyBuilder_.build(); } + result.filters_ = filters_; + result.token_ = token_; + result.limit_ = limit_; onBuilt(); return result; } @@ -8521,19 +8682,30 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.ListArtifactsRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.ListArtifactsRequest)other); + if (other instanceof flyteidl.artifact.Artifacts.SearchArtifactsRequest) { + return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.ListArtifactsRequest other) { - if (other == flyteidl.artifact.Artifacts.ListArtifactsRequest.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsRequest other) { + if (other == flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance()) return this; if (other.hasArtifactKey()) { mergeArtifactKey(other.getArtifactKey()); } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -8549,11 +8721,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.ListArtifactsRequest parsedMessage = null; + flyteidl.artifact.Artifacts.SearchArtifactsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ListArtifactsRequest) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8679,6 +8851,170 @@ public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { } return artifactKeyBuilder_; } + + private java.lang.Object filters_ = ""; + /** + * string filters = 2; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string filters = 2; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string filters = 2; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + * string filters = 2; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + * string filters = 2; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + * int32 limit = 4; + */ + public int getLimit() { + return limit_; + } + /** + * int32 limit = 4; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + * int32 limit = 4; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8692,48 +9028,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ListArtifactsRequest) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.SearchArtifactsRequest) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactsRequest) - private static final flyteidl.artifact.Artifacts.ListArtifactsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsRequest) + private static final flyteidl.artifact.Artifacts.SearchArtifactsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ListArtifactsRequest(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(); } - public static flyteidl.artifact.Artifacts.ListArtifactsRequest getDefaultInstance() { + public static flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ListArtifactsRequest parsePartialFrom( + public SearchArtifactsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListArtifactsRequest(input, extensionRegistry); + return new SearchArtifactsRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsRequest getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ListArtifactsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ListArtifactsResponse) + public interface SearchArtifactsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsResponse) com.google.protobuf.MessageOrBuilder { /** @@ -8761,18 +9097,18 @@ flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( int index); } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactsResponse} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} */ - public static final class ListArtifactsResponse extends + public static final class SearchArtifactsResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ListArtifactsResponse) - ListArtifactsResponseOrBuilder { + // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsResponse) + SearchArtifactsResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use ListArtifactsResponse.newBuilder() to construct. - private ListArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SearchArtifactsResponse.newBuilder() to construct. + private SearchArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListArtifactsResponse() { + private SearchArtifactsResponse() { artifacts_ = java.util.Collections.emptyList(); } @@ -8781,7 +9117,7 @@ private ListArtifactsResponse() { getUnknownFields() { return this.unknownFields; } - private ListArtifactsResponse( + private SearchArtifactsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8833,15 +9169,15 @@ private ListArtifactsResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactsResponse.class, flyteidl.artifact.Artifacts.ListArtifactsResponse.Builder.class); + flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); } public static final int ARTIFACTS_FIELD_NUMBER = 1; @@ -8919,10 +9255,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof flyteidl.artifact.Artifacts.ListArtifactsResponse)) { + if (!(obj instanceof flyteidl.artifact.Artifacts.SearchArtifactsResponse)) { return super.equals(obj); } - flyteidl.artifact.Artifacts.ListArtifactsResponse other = (flyteidl.artifact.Artifacts.ListArtifactsResponse) obj; + flyteidl.artifact.Artifacts.SearchArtifactsResponse other = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) obj; if (!getArtifactsList() .equals(other.getArtifactsList())) return false; @@ -8946,69 +9282,69 @@ public int hashCode() { return hash; } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom(byte[] data) + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseDelimitedFrom(java.io.InputStream input) + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseDelimitedFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9021,7 +9357,7 @@ public static flyteidl.artifact.Artifacts.ListArtifactsResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(flyteidl.artifact.Artifacts.ListArtifactsResponse prototype) { + public static Builder newBuilder(flyteidl.artifact.Artifacts.SearchArtifactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -9037,26 +9373,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code flyteidl.artifact.ListArtifactsResponse} + * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ListArtifactsResponse) - flyteidl.artifact.Artifacts.ListArtifactsResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsResponse) + flyteidl.artifact.Artifacts.SearchArtifactsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsResponse_fieldAccessorTable + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ListArtifactsResponse.class, flyteidl.artifact.Artifacts.ListArtifactsResponse.Builder.class); + flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); } - // Construct using flyteidl.artifact.Artifacts.ListArtifactsResponse.newBuilder() + // Construct using flyteidl.artifact.Artifacts.SearchArtifactsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -9087,17 +9423,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ListArtifactsResponse_descriptor; + return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ListArtifactsResponse.getDefaultInstance(); + public flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { + return flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance(); } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsResponse build() { - flyteidl.artifact.Artifacts.ListArtifactsResponse result = buildPartial(); + public flyteidl.artifact.Artifacts.SearchArtifactsResponse build() { + flyteidl.artifact.Artifacts.SearchArtifactsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9105,8 +9441,8 @@ public flyteidl.artifact.Artifacts.ListArtifactsResponse build() { } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsResponse buildPartial() { - flyteidl.artifact.Artifacts.ListArtifactsResponse result = new flyteidl.artifact.Artifacts.ListArtifactsResponse(this); + public flyteidl.artifact.Artifacts.SearchArtifactsResponse buildPartial() { + flyteidl.artifact.Artifacts.SearchArtifactsResponse result = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(this); int from_bitField0_ = bitField0_; if (artifactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -9155,16 +9491,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof flyteidl.artifact.Artifacts.ListArtifactsResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.ListArtifactsResponse)other); + if (other instanceof flyteidl.artifact.Artifacts.SearchArtifactsResponse) { + return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(flyteidl.artifact.Artifacts.ListArtifactsResponse other) { - if (other == flyteidl.artifact.Artifacts.ListArtifactsResponse.getDefaultInstance()) return this; + public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsResponse other) { + if (other == flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance()) return this; if (artifactsBuilder_ == null) { if (!other.artifacts_.isEmpty()) { if (artifacts_.isEmpty()) { @@ -9206,11 +9542,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - flyteidl.artifact.Artifacts.ListArtifactsResponse parsedMessage = null; + flyteidl.artifact.Artifacts.SearchArtifactsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ListArtifactsResponse) e.getUnfinishedMessage(); + parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9473,41 +9809,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:flyteidl.artifact.ListArtifactsResponse) + // @@protoc_insertion_point(builder_scope:flyteidl.artifact.SearchArtifactsResponse) } - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ListArtifactsResponse) - private static final flyteidl.artifact.Artifacts.ListArtifactsResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsResponse) + private static final flyteidl.artifact.Artifacts.SearchArtifactsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ListArtifactsResponse(); + DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(); } - public static flyteidl.artifact.Artifacts.ListArtifactsResponse getDefaultInstance() { + public static flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ListArtifactsResponse parsePartialFrom( + public SearchArtifactsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListArtifactsResponse(input, extensionRegistry); + return new SearchArtifactsResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public flyteidl.artifact.Artifacts.ListArtifactsResponse getDefaultInstanceForType() { + public flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -16550,15 +16886,15 @@ public flyteidl.artifact.Artifacts.RegisterResponse getDefaultInstanceForType() com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_artifact_ListArtifactNamesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ListArtifactsRequest_descriptor; + internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ListArtifactsRequest_fieldAccessorTable; + internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ListArtifactsResponse_descriptor; + internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ListArtifactsResponse_fieldAccessorTable; + internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_artifact_AddTagRequest_descriptor; private static final @@ -16625,81 +16961,102 @@ public flyteidl.artifact.Artifacts.RegisterResponse getDefaultInstanceForType() java.lang.String[] descriptorData = { "\n!flyteidl/artifact/artifacts.proto\022\021fly" + "teidl.artifact\032\031google/protobuf/any.prot" + - "o\032 flyteidl/admin/launch_plan.proto\032\034fly" + - "teidl/core/literals.proto\032\031flyteidl/core" + - "/types.proto\032\036flyteidl/core/identifier.p" + - "roto\032\037flyteidl/core/artifact_id.proto\032\035f" + - "lyteidl/core/interface.proto\"w\n\010Artifact" + - "\022.\n\013artifact_id\030\001 \001(\0132\031.flyteidl.core.Ar" + - "tifactID\022-\n\004spec\030\002 \001(\0132\037.flyteidl.artifa" + - "ct.ArtifactSpec\022\014\n\004tags\030\003 \003(\t\"\227\002\n\025Create" + - "ArtifactRequest\0220\n\014artifact_key\030\001 \001(\0132\032." + - "flyteidl.core.ArtifactKey\022\017\n\007version\030\003 \001" + - "(\t\022-\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Art" + - "ifactSpec\022L\n\npartitions\030\004 \003(\01328.flyteidl" + - ".artifact.CreateArtifactRequest.Partitio" + - "nsEntry\022\013\n\003tag\030\005 \001(\t\0321\n\017PartitionsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\352\002\n\014Arti" + - "factSpec\022%\n\005value\030\001 \001(\0132\026.flyteidl.core." + - "Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.Li" + - "teralType\022>\n\016task_execution\030\005 \001(\0132&.flyt" + - "eidl.core.TaskExecutionIdentifier\022=\n\texe" + - "cution\030\006 \001(\0132*.flyteidl.core.WorkflowExe" + - "cutionIdentifier\022\021\n\tprincipal\030\007 \001(\t\022\031\n\021s" + - "hort_description\030\010 \001(\t\022\030\n\020long_descripti" + - "on\030\t \001(\t\022+\n\ruser_metadata\030\n \001(\0132\024.google" + - ".protobuf.Any\022\025\n\rmetadata_type\030\013 \001(\t\"G\n\026" + - "CreateArtifactResponse\022-\n\010artifact\030\001 \001(\013" + - "2\033.flyteidl.artifact.Artifact\"R\n\022GetArti" + - "factRequest\022+\n\005query\030\001 \001(\0132\034.flyteidl.co" + - "re.ArtifactQuery\022\017\n\007details\030\002 \001(\010\"D\n\023Get" + - "ArtifactResponse\022-\n\010artifact\030\001 \001(\0132\033.fly" + - "teidl.artifact.Artifact\";\n\030ListArtifactN" + - "amesRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002" + - " \001(\t\"N\n\031ListArtifactNamesResponse\0221\n\rart" + - "ifact_keys\030\001 \003(\0132\032.flyteidl.core.Artifac" + - "tKey\"H\n\024ListArtifactsRequest\0220\n\014artifact" + - "_key\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\"G" + - "\n\025ListArtifactsResponse\022.\n\tartifacts\030\001 \003" + - "(\0132\033.flyteidl.artifact.Artifact\"a\n\rAddTa" + - "gRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyteidl" + - ".core.ArtifactID\022\r\n\005value\030\002 \001(\t\022\021\n\toverw" + - "rite\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n\024CreateTr" + - "iggerRequest\0227\n\023trigger_launch_plan\030\001 \001(" + - "\0132\032.flyteidl.admin.LaunchPlan\"\027\n\025CreateT" + - "riggerResponse\"E\n\024DeleteTriggerRequest\022-" + - "\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.core.Ident" + - "ifier\"\027\n\025DeleteTriggerResponse\"m\n\020Artifa" + - "ctProducer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl" + - ".core.Identifier\022+\n\007outputs\030\002 \001(\0132\032.flyt" + - "eidl.core.VariableMap\"Q\n\027RegisterProduce" + - "rRequest\0226\n\tproducers\030\001 \003(\0132#.flyteidl.a" + - "rtifact.ArtifactProducer\"m\n\020ArtifactCons" + - "umer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl.core." + - "Identifier\022+\n\006inputs\030\002 \001(\0132\033.flyteidl.co" + - "re.ParameterMap\"Q\n\027RegisterConsumerReque" + - "st\0226\n\tconsumers\030\001 \003(\0132#.flyteidl.artifac" + - "t.ArtifactConsumer\"\022\n\020RegisterResponse2\306" + - "\005\n\020ArtifactRegistry\022g\n\016CreateArtifact\022(." + - "flyteidl.artifact.CreateArtifactRequest\032" + - ").flyteidl.artifact.CreateArtifactRespon" + - "se\"\000\022^\n\013GetArtifact\022%.flyteidl.artifact." + - "GetArtifactRequest\032&.flyteidl.artifact.G" + - "etArtifactResponse\"\000\022d\n\rCreateTrigger\022\'." + - "flyteidl.artifact.CreateTriggerRequest\032(" + - ".flyteidl.artifact.CreateTriggerResponse" + - "\"\000\022d\n\rDeleteTrigger\022\'.flyteidl.artifact." + - "DeleteTriggerRequest\032(.flyteidl.artifact" + - ".DeleteTriggerResponse\"\000\022O\n\006AddTag\022 .fly" + - "teidl.artifact.AddTagRequest\032!.flyteidl." + - "artifact.AddTagResponse\"\000\022e\n\020RegisterPro" + - "ducer\022*.flyteidl.artifact.RegisterProduc" + - "erRequest\032#.flyteidl.artifact.RegisterRe" + - "sponse\"\000\022e\n\020RegisterConsumer\022*.flyteidl." + - "artifact.RegisterConsumerRequest\032#.flyte" + - "idl.artifact.RegisterResponse\"\000B@Z>githu" + - "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" + - "flyteidl/artifactb\006proto3" + "o\032\034google/api/annotations.proto\032 flyteid" + + "l/admin/launch_plan.proto\032\034flyteidl/core" + + "/literals.proto\032\031flyteidl/core/types.pro" + + "to\032\036flyteidl/core/identifier.proto\032\037flyt" + + "eidl/core/artifact_id.proto\032\035flyteidl/co" + + "re/interface.proto\"w\n\010Artifact\022.\n\013artifa" + + "ct_id\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022-" + + "\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Artifac" + + "tSpec\022\014\n\004tags\030\003 \003(\t\"\227\002\n\025CreateArtifactRe" + + "quest\0220\n\014artifact_key\030\001 \001(\0132\032.flyteidl.c" + + "ore.ArtifactKey\022\017\n\007version\030\003 \001(\t\022-\n\004spec" + + "\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec\022" + + "L\n\npartitions\030\004 \003(\01328.flyteidl.artifact." + + "CreateArtifactRequest.PartitionsEntry\022\013\n" + + "\003tag\030\005 \001(\t\0321\n\017PartitionsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\352\002\n\014ArtifactSpec\022%" + + "\n\005value\030\001 \001(\0132\026.flyteidl.core.Literal\022(\n" + + "\004type\030\002 \001(\0132\032.flyteidl.core.LiteralType\022" + + ">\n\016task_execution\030\005 \001(\0132&.flyteidl.core." + + "TaskExecutionIdentifier\022=\n\texecution\030\006 \001" + + "(\0132*.flyteidl.core.WorkflowExecutionIden" + + "tifier\022\021\n\tprincipal\030\007 \001(\t\022\031\n\021short_descr" + + "iption\030\010 \001(\t\022\030\n\020long_description\030\t \001(\t\022+" + + "\n\ruser_metadata\030\n \001(\0132\024.google.protobuf." + + "Any\022\025\n\rmetadata_type\030\013 \001(\t\"G\n\026CreateArti" + + "factResponse\022-\n\010artifact\030\001 \001(\0132\033.flyteid" + + "l.artifact.Artifact\"R\n\022GetArtifactReques" + + "t\022+\n\005query\030\001 \001(\0132\034.flyteidl.core.Artifac" + + "tQuery\022\017\n\007details\030\002 \001(\010\"D\n\023GetArtifactRe" + + "sponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl.arti" + + "fact.Artifact\";\n\030ListArtifactNamesReques" + + "t\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\"N\n\031Li" + + "stArtifactNamesResponse\0221\n\rartifact_keys" + + "\030\001 \003(\0132\032.flyteidl.core.ArtifactKey\"y\n\026Se" + + "archArtifactsRequest\0220\n\014artifact_key\030\001 \001" + + "(\0132\032.flyteidl.core.ArtifactKey\022\017\n\007filter" + + "s\030\002 \001(\t\022\r\n\005token\030\003 \001(\t\022\r\n\005limit\030\004 \001(\005\"I\n" + + "\027SearchArtifactsResponse\022.\n\tartifacts\030\001 " + + "\003(\0132\033.flyteidl.artifact.Artifact\"a\n\rAddT" + + "agRequest\022.\n\013artifact_id\030\001 \001(\0132\031.flyteid" + + "l.core.ArtifactID\022\r\n\005value\030\002 \001(\t\022\021\n\tover" + + "write\030\003 \001(\010\"\020\n\016AddTagResponse\"O\n\024CreateT" + + "riggerRequest\0227\n\023trigger_launch_plan\030\001 \001" + + "(\0132\032.flyteidl.admin.LaunchPlan\"\027\n\025Create" + + "TriggerResponse\"E\n\024DeleteTriggerRequest\022" + + "-\n\ntrigger_id\030\001 \001(\0132\031.flyteidl.core.Iden" + + "tifier\"\027\n\025DeleteTriggerResponse\"m\n\020Artif" + + "actProducer\022,\n\tentity_id\030\001 \001(\0132\031.flyteid" + + "l.core.Identifier\022+\n\007outputs\030\002 \001(\0132\032.fly" + + "teidl.core.VariableMap\"Q\n\027RegisterProduc" + + "erRequest\0226\n\tproducers\030\001 \003(\0132#.flyteidl." + + "artifact.ArtifactProducer\"m\n\020ArtifactCon" + + "sumer\022,\n\tentity_id\030\001 \001(\0132\031.flyteidl.core" + + ".Identifier\022+\n\006inputs\030\002 \001(\0132\033.flyteidl.c" + + "ore.ParameterMap\"Q\n\027RegisterConsumerRequ" + + "est\0226\n\tconsumers\030\001 \003(\0132#.flyteidl.artifa" + + "ct.ArtifactConsumer\"\022\n\020RegisterResponse2" + + "\273\013\n\020ArtifactRegistry\022g\n\016CreateArtifact\022(" + + ".flyteidl.artifact.CreateArtifactRequest" + + "\032).flyteidl.artifact.CreateArtifactRespo" + + "nse\"\000\022\315\004\n\013GetArtifact\022%.flyteidl.artifac" + + "t.GetArtifactRequest\032&.flyteidl.artifact" + + ".GetArtifactResponse\"\356\003\202\323\344\223\002\347\003\022\022/data/v1" + + "/artifactsZ\252\001\022\247\001/data/v1/artifact/id/{qu" + + "ery.artifact_id.artifact_key.project}/{q" + + "uery.artifact_id.artifact_key.domain}/{q" + + "uery.artifact_id.artifact_key.name}/{que" + + "ry.artifact_id.version}Z\216\001\022\213\001/data/v1/ar" + + "tifact/id/{query.artifact_id.artifact_ke" + + "y.project}/{query.artifact_id.artifact_k" + + "ey.domain}/{query.artifact_id.artifact_k" + + "ey.name}Z\222\001\022\217\001/data/v1/artifact/tag/{que" + + "ry.artifact_tag.artifact_key.project}/{q" + + "uery.artifact_tag.artifact_key.domain}/{" + + "query.artifact_tag.artifact_key.name}\022\202\002" + + "\n\017SearchArtifacts\022).flyteidl.artifact.Se" + + "archArtifactsRequest\032*.flyteidl.artifact" + + ".SearchArtifactsResponse\"\227\001\202\323\344\223\002\220\001\022O/dat" + + "a/v1/query/{artifact_key.project}/{artif" + + "act_key.domain}/{artifact_key.name}Z=\022;/" + + "data/v1/query/{artifact_key.project}/{ar" + + "tifact_key.domain}\022d\n\rCreateTrigger\022\'.fl" + + "yteidl.artifact.CreateTriggerRequest\032(.f" + + "lyteidl.artifact.CreateTriggerResponse\"\000" + + "\022d\n\rDeleteTrigger\022\'.flyteidl.artifact.De" + + "leteTriggerRequest\032(.flyteidl.artifact.D" + + "eleteTriggerResponse\"\000\022O\n\006AddTag\022 .flyte" + + "idl.artifact.AddTagRequest\032!.flyteidl.ar" + + "tifact.AddTagResponse\"\000\022e\n\020RegisterProdu" + + "cer\022*.flyteidl.artifact.RegisterProducer" + + "Request\032#.flyteidl.artifact.RegisterResp" + + "onse\"\000\022e\n\020RegisterConsumer\022*.flyteidl.ar" + + "tifact.RegisterConsumerRequest\032#.flyteid" + + "l.artifact.RegisterResponse\"\000B@Z>github." + + "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" + + "yteidl/artifactb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -16713,6 +17070,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), flyteidl.admin.LaunchPlanOuterClass.getDescriptor(), flyteidl.core.Literals.getDescriptor(), flyteidl.core.Types.getDescriptor(), @@ -16774,17 +17132,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_ListArtifactNamesResponse_descriptor, new java.lang.String[] { "ArtifactKeys", }); - internal_static_flyteidl_artifact_ListArtifactsRequest_descriptor = + internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor = getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_artifact_ListArtifactsRequest_fieldAccessorTable = new + internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ListArtifactsRequest_descriptor, - new java.lang.String[] { "ArtifactKey", }); - internal_static_flyteidl_artifact_ListArtifactsResponse_descriptor = + internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor, + new java.lang.String[] { "ArtifactKey", "Filters", "Token", "Limit", }); + internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor = getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_artifact_ListArtifactsResponse_fieldAccessorTable = new + internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ListArtifactsResponse_descriptor, + internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor, new java.lang.String[] { "Artifacts", }); internal_static_flyteidl_artifact_AddTagRequest_descriptor = getDescriptor().getMessageTypes().get(10); @@ -16852,7 +17210,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_artifact_RegisterResponse_descriptor, new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.AnyProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); flyteidl.admin.LaunchPlanOuterClass.getDescriptor(); flyteidl.core.Literals.getDescriptor(); flyteidl.core.Types.getDescriptor(); diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 05d44fccab..18a3d5c986 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -22777,104 +22777,122 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a ListArtifactsRequest. */ - interface IListArtifactsRequest { + /** Properties of a SearchArtifactsRequest. */ + interface ISearchArtifactsRequest { - /** ListArtifactsRequest artifactKey */ + /** SearchArtifactsRequest artifactKey */ artifactKey?: (flyteidl.core.IArtifactKey|null); + + /** SearchArtifactsRequest filters */ + filters?: (string|null); + + /** SearchArtifactsRequest token */ + token?: (string|null); + + /** SearchArtifactsRequest limit */ + limit?: (number|null); } - /** Represents a ListArtifactsRequest. */ - class ListArtifactsRequest implements IListArtifactsRequest { + /** Represents a SearchArtifactsRequest. */ + class SearchArtifactsRequest implements ISearchArtifactsRequest { /** - * Constructs a new ListArtifactsRequest. + * Constructs a new SearchArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.artifact.IListArtifactsRequest); + constructor(properties?: flyteidl.artifact.ISearchArtifactsRequest); - /** ListArtifactsRequest artifactKey. */ + /** SearchArtifactsRequest artifactKey. */ public artifactKey?: (flyteidl.core.IArtifactKey|null); + /** SearchArtifactsRequest filters. */ + public filters: string; + + /** SearchArtifactsRequest token. */ + public token: string; + + /** SearchArtifactsRequest limit. */ + public limit: number; + /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * Creates a new SearchArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsRequest instance + * @returns SearchArtifactsRequest instance */ - public static create(properties?: flyteidl.artifact.IListArtifactsRequest): flyteidl.artifact.ListArtifactsRequest; + public static create(properties?: flyteidl.artifact.ISearchArtifactsRequest): flyteidl.artifact.SearchArtifactsRequest; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link flyteidl.artifact.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode + * Encodes the specified SearchArtifactsRequest message. Does not implicitly {@link flyteidl.artifact.SearchArtifactsRequest.verify|verify} messages. + * @param message SearchArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.artifact.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.artifact.ISearchArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a SearchArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsRequest + * @returns SearchArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.artifact.ListArtifactsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.artifact.SearchArtifactsRequest; /** - * Verifies a ListArtifactsRequest message. + * Verifies a SearchArtifactsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a ListArtifactsResponse. */ - interface IListArtifactsResponse { + /** Properties of a SearchArtifactsResponse. */ + interface ISearchArtifactsResponse { - /** ListArtifactsResponse artifacts */ + /** SearchArtifactsResponse artifacts */ artifacts?: (flyteidl.artifact.IArtifact[]|null); } - /** Represents a ListArtifactsResponse. */ - class ListArtifactsResponse implements IListArtifactsResponse { + /** Represents a SearchArtifactsResponse. */ + class SearchArtifactsResponse implements ISearchArtifactsResponse { /** - * Constructs a new ListArtifactsResponse. + * Constructs a new SearchArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.artifact.IListArtifactsResponse); + constructor(properties?: flyteidl.artifact.ISearchArtifactsResponse); - /** ListArtifactsResponse artifacts. */ + /** SearchArtifactsResponse artifacts. */ public artifacts: flyteidl.artifact.IArtifact[]; /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new SearchArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsResponse instance + * @returns SearchArtifactsResponse instance */ - public static create(properties?: flyteidl.artifact.IListArtifactsResponse): flyteidl.artifact.ListArtifactsResponse; + public static create(properties?: flyteidl.artifact.ISearchArtifactsResponse): flyteidl.artifact.SearchArtifactsResponse; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link flyteidl.artifact.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified SearchArtifactsResponse message. Does not implicitly {@link flyteidl.artifact.SearchArtifactsResponse.verify|verify} messages. + * @param message SearchArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.artifact.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.artifact.ISearchArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a SearchArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsResponse + * @returns SearchArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.artifact.ListArtifactsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.artifact.SearchArtifactsResponse; /** - * Verifies a ListArtifactsResponse message. + * Verifies a SearchArtifactsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ @@ -23501,6 +23519,20 @@ export namespace flyteidl { */ public getArtifact(request: flyteidl.artifact.IGetArtifactRequest): Promise; + /** + * Calls SearchArtifacts. + * @param request SearchArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchArtifactsResponse + */ + public searchArtifacts(request: flyteidl.artifact.ISearchArtifactsRequest, callback: flyteidl.artifact.ArtifactRegistry.SearchArtifactsCallback): void; + + /** + * Calls SearchArtifacts. + * @param request SearchArtifactsRequest message or plain object + * @returns Promise + */ + public searchArtifacts(request: flyteidl.artifact.ISearchArtifactsRequest): Promise; + /** * Calls CreateTrigger. * @param request CreateTriggerRequest message or plain object @@ -23588,6 +23620,13 @@ export namespace flyteidl { */ type GetArtifactCallback = (error: (Error|null), response?: flyteidl.artifact.GetArtifactResponse) => void; + /** + * Callback as used by {@link flyteidl.artifact.ArtifactRegistry#searchArtifacts}. + * @param error Error, if any + * @param [response] SearchArtifactsResponse + */ + type SearchArtifactsCallback = (error: (Error|null), response?: flyteidl.artifact.SearchArtifactsResponse) => void; + /** * Callback as used by {@link flyteidl.artifact.ArtifactRegistry#createTrigger}. * @param error Error, if any diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index dccd99555c..cf057cc408 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -53159,24 +53159,27 @@ return ListArtifactNamesResponse; })(); - artifact.ListArtifactsRequest = (function() { + artifact.SearchArtifactsRequest = (function() { /** - * Properties of a ListArtifactsRequest. + * Properties of a SearchArtifactsRequest. * @memberof flyteidl.artifact - * @interface IListArtifactsRequest - * @property {flyteidl.core.IArtifactKey|null} [artifactKey] ListArtifactsRequest artifactKey + * @interface ISearchArtifactsRequest + * @property {flyteidl.core.IArtifactKey|null} [artifactKey] SearchArtifactsRequest artifactKey + * @property {string|null} [filters] SearchArtifactsRequest filters + * @property {string|null} [token] SearchArtifactsRequest token + * @property {number|null} [limit] SearchArtifactsRequest limit */ /** - * Constructs a new ListArtifactsRequest. + * Constructs a new SearchArtifactsRequest. * @memberof flyteidl.artifact - * @classdesc Represents a ListArtifactsRequest. - * @implements IListArtifactsRequest + * @classdesc Represents a SearchArtifactsRequest. + * @implements ISearchArtifactsRequest * @constructor - * @param {flyteidl.artifact.IListArtifactsRequest=} [properties] Properties to set + * @param {flyteidl.artifact.ISearchArtifactsRequest=} [properties] Properties to set */ - function ListArtifactsRequest(properties) { + function SearchArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53184,63 +53187,102 @@ } /** - * ListArtifactsRequest artifactKey. + * SearchArtifactsRequest artifactKey. * @member {flyteidl.core.IArtifactKey|null|undefined} artifactKey - * @memberof flyteidl.artifact.ListArtifactsRequest + * @memberof flyteidl.artifact.SearchArtifactsRequest * @instance */ - ListArtifactsRequest.prototype.artifactKey = null; + SearchArtifactsRequest.prototype.artifactKey = null; /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * SearchArtifactsRequest filters. + * @member {string} filters + * @memberof flyteidl.artifact.SearchArtifactsRequest + * @instance + */ + SearchArtifactsRequest.prototype.filters = ""; + + /** + * SearchArtifactsRequest token. + * @member {string} token + * @memberof flyteidl.artifact.SearchArtifactsRequest + * @instance + */ + SearchArtifactsRequest.prototype.token = ""; + + /** + * SearchArtifactsRequest limit. + * @member {number} limit + * @memberof flyteidl.artifact.SearchArtifactsRequest + * @instance + */ + SearchArtifactsRequest.prototype.limit = 0; + + /** + * Creates a new SearchArtifactsRequest instance using the specified properties. * @function create - * @memberof flyteidl.artifact.ListArtifactsRequest + * @memberof flyteidl.artifact.SearchArtifactsRequest * @static - * @param {flyteidl.artifact.IListArtifactsRequest=} [properties] Properties to set - * @returns {flyteidl.artifact.ListArtifactsRequest} ListArtifactsRequest instance + * @param {flyteidl.artifact.ISearchArtifactsRequest=} [properties] Properties to set + * @returns {flyteidl.artifact.SearchArtifactsRequest} SearchArtifactsRequest instance */ - ListArtifactsRequest.create = function create(properties) { - return new ListArtifactsRequest(properties); + SearchArtifactsRequest.create = function create(properties) { + return new SearchArtifactsRequest(properties); }; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link flyteidl.artifact.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified SearchArtifactsRequest message. Does not implicitly {@link flyteidl.artifact.SearchArtifactsRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.artifact.ListArtifactsRequest + * @memberof flyteidl.artifact.SearchArtifactsRequest * @static - * @param {flyteidl.artifact.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {flyteidl.artifact.ISearchArtifactsRequest} message SearchArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encode = function encode(message, writer) { + SearchArtifactsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) $root.flyteidl.core.ArtifactKey.encode(message.artifactKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filters); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.limit); return writer; }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a SearchArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.artifact.ListArtifactsRequest + * @memberof flyteidl.artifact.SearchArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.artifact.ListArtifactsRequest} ListArtifactsRequest + * @returns {flyteidl.artifact.SearchArtifactsRequest} SearchArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decode = function decode(reader, length) { + SearchArtifactsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.artifact.ListArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.artifact.SearchArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.artifactKey = $root.flyteidl.core.ArtifactKey.decode(reader, reader.uint32()); break; + case 2: + message.filters = reader.string(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.limit = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -53250,14 +53292,14 @@ }; /** - * Verifies a ListArtifactsRequest message. + * Verifies a SearchArtifactsRequest message. * @function verify - * @memberof flyteidl.artifact.ListArtifactsRequest + * @memberof flyteidl.artifact.SearchArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsRequest.verify = function verify(message) { + SearchArtifactsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) { @@ -53265,30 +53307,39 @@ if (error) return "artifactKey." + error; } + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; return null; }; - return ListArtifactsRequest; + return SearchArtifactsRequest; })(); - artifact.ListArtifactsResponse = (function() { + artifact.SearchArtifactsResponse = (function() { /** - * Properties of a ListArtifactsResponse. + * Properties of a SearchArtifactsResponse. * @memberof flyteidl.artifact - * @interface IListArtifactsResponse - * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts + * @interface ISearchArtifactsResponse + * @property {Array.|null} [artifacts] SearchArtifactsResponse artifacts */ /** - * Constructs a new ListArtifactsResponse. + * Constructs a new SearchArtifactsResponse. * @memberof flyteidl.artifact - * @classdesc Represents a ListArtifactsResponse. - * @implements IListArtifactsResponse + * @classdesc Represents a SearchArtifactsResponse. + * @implements ISearchArtifactsResponse * @constructor - * @param {flyteidl.artifact.IListArtifactsResponse=} [properties] Properties to set + * @param {flyteidl.artifact.ISearchArtifactsResponse=} [properties] Properties to set */ - function ListArtifactsResponse(properties) { + function SearchArtifactsResponse(properties) { this.artifacts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -53297,35 +53348,35 @@ } /** - * ListArtifactsResponse artifacts. + * SearchArtifactsResponse artifacts. * @member {Array.} artifacts - * @memberof flyteidl.artifact.ListArtifactsResponse + * @memberof flyteidl.artifact.SearchArtifactsResponse * @instance */ - ListArtifactsResponse.prototype.artifacts = $util.emptyArray; + SearchArtifactsResponse.prototype.artifacts = $util.emptyArray; /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new SearchArtifactsResponse instance using the specified properties. * @function create - * @memberof flyteidl.artifact.ListArtifactsResponse + * @memberof flyteidl.artifact.SearchArtifactsResponse * @static - * @param {flyteidl.artifact.IListArtifactsResponse=} [properties] Properties to set - * @returns {flyteidl.artifact.ListArtifactsResponse} ListArtifactsResponse instance + * @param {flyteidl.artifact.ISearchArtifactsResponse=} [properties] Properties to set + * @returns {flyteidl.artifact.SearchArtifactsResponse} SearchArtifactsResponse instance */ - ListArtifactsResponse.create = function create(properties) { - return new ListArtifactsResponse(properties); + SearchArtifactsResponse.create = function create(properties) { + return new SearchArtifactsResponse(properties); }; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link flyteidl.artifact.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified SearchArtifactsResponse message. Does not implicitly {@link flyteidl.artifact.SearchArtifactsResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.artifact.ListArtifactsResponse + * @memberof flyteidl.artifact.SearchArtifactsResponse * @static - * @param {flyteidl.artifact.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {flyteidl.artifact.ISearchArtifactsResponse} message SearchArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encode = function encode(message, writer) { + SearchArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.artifacts != null && message.artifacts.length) @@ -53335,20 +53386,20 @@ }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a SearchArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.artifact.ListArtifactsResponse + * @memberof flyteidl.artifact.SearchArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.artifact.ListArtifactsResponse} ListArtifactsResponse + * @returns {flyteidl.artifact.SearchArtifactsResponse} SearchArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decode = function decode(reader, length) { + SearchArtifactsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.artifact.ListArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.artifact.SearchArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -53366,14 +53417,14 @@ }; /** - * Verifies a ListArtifactsResponse message. + * Verifies a SearchArtifactsResponse message. * @function verify - * @memberof flyteidl.artifact.ListArtifactsResponse + * @memberof flyteidl.artifact.SearchArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsResponse.verify = function verify(message) { + SearchArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.artifacts != null && message.hasOwnProperty("artifacts")) { @@ -53388,7 +53439,7 @@ return null; }; - return ListArtifactsResponse; + return SearchArtifactsResponse; })(); artifact.AddTagRequest = (function() { @@ -54733,6 +54784,39 @@ * @variation 2 */ + /** + * Callback as used by {@link flyteidl.artifact.ArtifactRegistry#searchArtifacts}. + * @memberof flyteidl.artifact.ArtifactRegistry + * @typedef SearchArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.artifact.SearchArtifactsResponse} [response] SearchArtifactsResponse + */ + + /** + * Calls SearchArtifacts. + * @function searchArtifacts + * @memberof flyteidl.artifact.ArtifactRegistry + * @instance + * @param {flyteidl.artifact.ISearchArtifactsRequest} request SearchArtifactsRequest message or plain object + * @param {flyteidl.artifact.ArtifactRegistry.SearchArtifactsCallback} callback Node-style callback called with the error, if any, and SearchArtifactsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ArtifactRegistry.prototype.searchArtifacts = function searchArtifacts(request, callback) { + return this.rpcCall(searchArtifacts, $root.flyteidl.artifact.SearchArtifactsRequest, $root.flyteidl.artifact.SearchArtifactsResponse, request, callback); + }, "name", { value: "SearchArtifacts" }); + + /** + * Calls SearchArtifacts. + * @function searchArtifacts + * @memberof flyteidl.artifact.ArtifactRegistry + * @instance + * @param {flyteidl.artifact.ISearchArtifactsRequest} request SearchArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link flyteidl.artifact.ArtifactRegistry#createTrigger}. * @memberof flyteidl.artifact.ArtifactRegistry diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py index d48ac55b8e..b8d68b8421 100644 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py @@ -12,6 +12,7 @@ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 @@ -20,7 +21,7 @@ from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/artifact/artifacts.proto\x12\x11\x66lyteidl.artifact\x1a\x19google/protobuf/any.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1d\x66lyteidl/core/interface.proto\"\x8f\x01\n\x08\x41rtifact\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\"\xd0\x02\n\x15\x43reateArtifactRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12X\n\npartitions\x18\x04 \x03(\x0b\x32\x38.flyteidl.artifact.CreateArtifactRequest.PartitionsEntryR\npartitions\x12\x10\n\x03tag\x18\x05 \x01(\tR\x03tag\x1a=\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xdb\x03\n\x0c\x41rtifactSpec\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12M\n\x0etask_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\rtaskExecution\x12H\n\texecution\x18\x06 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\texecution\x12\x1c\n\tprincipal\x18\x07 \x01(\tR\tprincipal\x12+\n\x11short_description\x18\x08 \x01(\tR\x10shortDescription\x12)\n\x10long_description\x18\t \x01(\tR\x0flongDescription\x12\x39\n\ruser_metadata\x18\n \x01(\x0b\x32\x14.google.protobuf.AnyR\x0cuserMetadata\x12#\n\rmetadata_type\x18\x0b \x01(\tR\x0cmetadataType\"Q\n\x16\x43reateArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"b\n\x12GetArtifactRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryR\x05query\x12\x18\n\x07\x64\x65tails\x18\x02 \x01(\x08R\x07\x64\x65tails\"N\n\x13GetArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"L\n\x18ListArtifactNamesRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\"\\\n\x19ListArtifactNamesResponse\x12?\n\rartifact_keys\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0c\x61rtifactKeys\"U\n\x14ListArtifactsRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\"R\n\x15ListArtifactsResponse\x12\x39\n\tartifacts\x18\x01 \x03(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\tartifacts\"\x7f\n\rAddTagRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n\toverwrite\x18\x03 \x01(\x08R\toverwrite\"\x10\n\x0e\x41\x64\x64TagResponse\"b\n\x14\x43reateTriggerRequest\x12J\n\x13trigger_launch_plan\x18\x01 \x01(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x11triggerLaunchPlan\"\x17\n\x15\x43reateTriggerResponse\"P\n\x14\x44\x65leteTriggerRequest\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\"\x17\n\x15\x44\x65leteTriggerResponse\"\x80\x01\n\x10\x41rtifactProducer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\\\n\x17RegisterProducerRequest\x12\x41\n\tproducers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactProducerR\tproducers\"\x7f\n\x10\x41rtifactConsumer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x06inputs\"\\\n\x17RegisterConsumerRequest\x12\x41\n\tconsumers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactConsumerR\tconsumers\"\x12\n\x10RegisterResponse2\xc6\x05\n\x10\x41rtifactRegistry\x12g\n\x0e\x43reateArtifact\x12(.flyteidl.artifact.CreateArtifactRequest\x1a).flyteidl.artifact.CreateArtifactResponse\"\x00\x12^\n\x0bGetArtifact\x12%.flyteidl.artifact.GetArtifactRequest\x1a&.flyteidl.artifact.GetArtifactResponse\"\x00\x12\x64\n\rCreateTrigger\x12\'.flyteidl.artifact.CreateTriggerRequest\x1a(.flyteidl.artifact.CreateTriggerResponse\"\x00\x12\x64\n\rDeleteTrigger\x12\'.flyteidl.artifact.DeleteTriggerRequest\x1a(.flyteidl.artifact.DeleteTriggerResponse\"\x00\x12O\n\x06\x41\x64\x64Tag\x12 .flyteidl.artifact.AddTagRequest\x1a!.flyteidl.artifact.AddTagResponse\"\x00\x12\x65\n\x10RegisterProducer\x12*.flyteidl.artifact.RegisterProducerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12\x65\n\x10RegisterConsumer\x12*.flyteidl.artifact.RegisterConsumerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x42\xcc\x01\n\x15\x63om.flyteidl.artifactB\x0e\x41rtifactsProtoP\x01Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\xa2\x02\x03\x46\x41X\xaa\x02\x11\x46lyteidl.Artifact\xca\x02\x11\x46lyteidl\\Artifact\xe2\x02\x1d\x46lyteidl\\Artifact\\GPBMetadata\xea\x02\x12\x46lyteidl::Artifactb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/artifact/artifacts.proto\x12\x11\x66lyteidl.artifact\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1d\x66lyteidl/core/interface.proto\"\x8f\x01\n\x08\x41rtifact\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\"\xd0\x02\n\x15\x43reateArtifactRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12X\n\npartitions\x18\x04 \x03(\x0b\x32\x38.flyteidl.artifact.CreateArtifactRequest.PartitionsEntryR\npartitions\x12\x10\n\x03tag\x18\x05 \x01(\tR\x03tag\x1a=\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xdb\x03\n\x0c\x41rtifactSpec\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12M\n\x0etask_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\rtaskExecution\x12H\n\texecution\x18\x06 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\texecution\x12\x1c\n\tprincipal\x18\x07 \x01(\tR\tprincipal\x12+\n\x11short_description\x18\x08 \x01(\tR\x10shortDescription\x12)\n\x10long_description\x18\t \x01(\tR\x0flongDescription\x12\x39\n\ruser_metadata\x18\n \x01(\x0b\x32\x14.google.protobuf.AnyR\x0cuserMetadata\x12#\n\rmetadata_type\x18\x0b \x01(\tR\x0cmetadataType\"Q\n\x16\x43reateArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"b\n\x12GetArtifactRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryR\x05query\x12\x18\n\x07\x64\x65tails\x18\x02 \x01(\x08R\x07\x64\x65tails\"N\n\x13GetArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"L\n\x18ListArtifactNamesRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\"\\\n\x19ListArtifactNamesResponse\x12?\n\rartifact_keys\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0c\x61rtifactKeys\"\x9d\x01\n\x16SearchArtifactsRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07\x66ilters\x18\x02 \x01(\tR\x07\x66ilters\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x04 \x01(\x05R\x05limit\"T\n\x17SearchArtifactsResponse\x12\x39\n\tartifacts\x18\x01 \x03(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\tartifacts\"\x7f\n\rAddTagRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n\toverwrite\x18\x03 \x01(\x08R\toverwrite\"\x10\n\x0e\x41\x64\x64TagResponse\"b\n\x14\x43reateTriggerRequest\x12J\n\x13trigger_launch_plan\x18\x01 \x01(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x11triggerLaunchPlan\"\x17\n\x15\x43reateTriggerResponse\"P\n\x14\x44\x65leteTriggerRequest\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\"\x17\n\x15\x44\x65leteTriggerResponse\"\x80\x01\n\x10\x41rtifactProducer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\\\n\x17RegisterProducerRequest\x12\x41\n\tproducers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactProducerR\tproducers\"\x7f\n\x10\x41rtifactConsumer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x06inputs\"\\\n\x17RegisterConsumerRequest\x12\x41\n\tconsumers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactConsumerR\tconsumers\"\x12\n\x10RegisterResponse2\xbb\x0b\n\x10\x41rtifactRegistry\x12g\n\x0e\x43reateArtifact\x12(.flyteidl.artifact.CreateArtifactRequest\x1a).flyteidl.artifact.CreateArtifactResponse\"\x00\x12\xcd\x04\n\x0bGetArtifact\x12%.flyteidl.artifact.GetArtifactRequest\x1a&.flyteidl.artifact.GetArtifactResponse\"\xee\x03\x82\xd3\xe4\x93\x02\xe7\x03Z\xaa\x01\x12\xa7\x01/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\x8e\x01\x12\x8b\x01/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\x92\x01\x12\x8f\x01/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\x12\x12/data/v1/artifacts\x12\x82\x02\n\x0fSearchArtifacts\x12).flyteidl.artifact.SearchArtifactsRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"\x97\x01\x82\xd3\xe4\x93\x02\x90\x01Z=\x12;/data/v1/query/{artifact_key.project}/{artifact_key.domain}\x12O/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}\x12\x64\n\rCreateTrigger\x12\'.flyteidl.artifact.CreateTriggerRequest\x1a(.flyteidl.artifact.CreateTriggerResponse\"\x00\x12\x64\n\rDeleteTrigger\x12\'.flyteidl.artifact.DeleteTriggerRequest\x1a(.flyteidl.artifact.DeleteTriggerResponse\"\x00\x12O\n\x06\x41\x64\x64Tag\x12 .flyteidl.artifact.AddTagRequest\x1a!.flyteidl.artifact.AddTagResponse\"\x00\x12\x65\n\x10RegisterProducer\x12*.flyteidl.artifact.RegisterProducerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12\x65\n\x10RegisterConsumer\x12*.flyteidl.artifact.RegisterConsumerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x42\xcc\x01\n\x15\x63om.flyteidl.artifactB\x0e\x41rtifactsProtoP\x01Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\xa2\x02\x03\x46\x41X\xaa\x02\x11\x46lyteidl.Artifact\xca\x02\x11\x46lyteidl\\Artifact\xe2\x02\x1d\x46lyteidl\\Artifact\\GPBMetadata\xea\x02\x12\x46lyteidl::Artifactb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -31,50 +32,54 @@ DESCRIPTOR._serialized_options = b'\n\025com.flyteidl.artifactB\016ArtifactsProtoP\001Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\242\002\003FAX\252\002\021Flyteidl.Artifact\312\002\021Flyteidl\\Artifact\342\002\035Flyteidl\\Artifact\\GPBMetadata\352\002\022Flyteidl::Artifact' _CREATEARTIFACTREQUEST_PARTITIONSENTRY._options = None _CREATEARTIFACTREQUEST_PARTITIONSENTRY._serialized_options = b'8\001' - _globals['_ARTIFACT']._serialized_start=271 - _globals['_ARTIFACT']._serialized_end=414 - _globals['_CREATEARTIFACTREQUEST']._serialized_start=417 - _globals['_CREATEARTIFACTREQUEST']._serialized_end=753 - _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_start=692 - _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_end=753 - _globals['_ARTIFACTSPEC']._serialized_start=756 - _globals['_ARTIFACTSPEC']._serialized_end=1231 - _globals['_CREATEARTIFACTRESPONSE']._serialized_start=1233 - _globals['_CREATEARTIFACTRESPONSE']._serialized_end=1314 - _globals['_GETARTIFACTREQUEST']._serialized_start=1316 - _globals['_GETARTIFACTREQUEST']._serialized_end=1414 - _globals['_GETARTIFACTRESPONSE']._serialized_start=1416 - _globals['_GETARTIFACTRESPONSE']._serialized_end=1494 - _globals['_LISTARTIFACTNAMESREQUEST']._serialized_start=1496 - _globals['_LISTARTIFACTNAMESREQUEST']._serialized_end=1572 - _globals['_LISTARTIFACTNAMESRESPONSE']._serialized_start=1574 - _globals['_LISTARTIFACTNAMESRESPONSE']._serialized_end=1666 - _globals['_LISTARTIFACTSREQUEST']._serialized_start=1668 - _globals['_LISTARTIFACTSREQUEST']._serialized_end=1753 - _globals['_LISTARTIFACTSRESPONSE']._serialized_start=1755 - _globals['_LISTARTIFACTSRESPONSE']._serialized_end=1837 - _globals['_ADDTAGREQUEST']._serialized_start=1839 - _globals['_ADDTAGREQUEST']._serialized_end=1966 - _globals['_ADDTAGRESPONSE']._serialized_start=1968 - _globals['_ADDTAGRESPONSE']._serialized_end=1984 - _globals['_CREATETRIGGERREQUEST']._serialized_start=1986 - _globals['_CREATETRIGGERREQUEST']._serialized_end=2084 - _globals['_CREATETRIGGERRESPONSE']._serialized_start=2086 - _globals['_CREATETRIGGERRESPONSE']._serialized_end=2109 - _globals['_DELETETRIGGERREQUEST']._serialized_start=2111 - _globals['_DELETETRIGGERREQUEST']._serialized_end=2191 - _globals['_DELETETRIGGERRESPONSE']._serialized_start=2193 - _globals['_DELETETRIGGERRESPONSE']._serialized_end=2216 - _globals['_ARTIFACTPRODUCER']._serialized_start=2219 - _globals['_ARTIFACTPRODUCER']._serialized_end=2347 - _globals['_REGISTERPRODUCERREQUEST']._serialized_start=2349 - _globals['_REGISTERPRODUCERREQUEST']._serialized_end=2441 - _globals['_ARTIFACTCONSUMER']._serialized_start=2443 - _globals['_ARTIFACTCONSUMER']._serialized_end=2570 - _globals['_REGISTERCONSUMERREQUEST']._serialized_start=2572 - _globals['_REGISTERCONSUMERREQUEST']._serialized_end=2664 - _globals['_REGISTERRESPONSE']._serialized_start=2666 - _globals['_REGISTERRESPONSE']._serialized_end=2684 - _globals['_ARTIFACTREGISTRY']._serialized_start=2687 - _globals['_ARTIFACTREGISTRY']._serialized_end=3397 + _ARTIFACTREGISTRY.methods_by_name['GetArtifact']._options = None + _ARTIFACTREGISTRY.methods_by_name['GetArtifact']._serialized_options = b'\202\323\344\223\002\347\003Z\252\001\022\247\001/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\216\001\022\213\001/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\222\001\022\217\001/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\022\022/data/v1/artifacts' + _ARTIFACTREGISTRY.methods_by_name['SearchArtifacts']._options = None + _ARTIFACTREGISTRY.methods_by_name['SearchArtifacts']._serialized_options = b'\202\323\344\223\002\220\001Z=\022;/data/v1/query/{artifact_key.project}/{artifact_key.domain}\022O/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}' + _globals['_ARTIFACT']._serialized_start=301 + _globals['_ARTIFACT']._serialized_end=444 + _globals['_CREATEARTIFACTREQUEST']._serialized_start=447 + _globals['_CREATEARTIFACTREQUEST']._serialized_end=783 + _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_start=722 + _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_end=783 + _globals['_ARTIFACTSPEC']._serialized_start=786 + _globals['_ARTIFACTSPEC']._serialized_end=1261 + _globals['_CREATEARTIFACTRESPONSE']._serialized_start=1263 + _globals['_CREATEARTIFACTRESPONSE']._serialized_end=1344 + _globals['_GETARTIFACTREQUEST']._serialized_start=1346 + _globals['_GETARTIFACTREQUEST']._serialized_end=1444 + _globals['_GETARTIFACTRESPONSE']._serialized_start=1446 + _globals['_GETARTIFACTRESPONSE']._serialized_end=1524 + _globals['_LISTARTIFACTNAMESREQUEST']._serialized_start=1526 + _globals['_LISTARTIFACTNAMESREQUEST']._serialized_end=1602 + _globals['_LISTARTIFACTNAMESRESPONSE']._serialized_start=1604 + _globals['_LISTARTIFACTNAMESRESPONSE']._serialized_end=1696 + _globals['_SEARCHARTIFACTSREQUEST']._serialized_start=1699 + _globals['_SEARCHARTIFACTSREQUEST']._serialized_end=1856 + _globals['_SEARCHARTIFACTSRESPONSE']._serialized_start=1858 + _globals['_SEARCHARTIFACTSRESPONSE']._serialized_end=1942 + _globals['_ADDTAGREQUEST']._serialized_start=1944 + _globals['_ADDTAGREQUEST']._serialized_end=2071 + _globals['_ADDTAGRESPONSE']._serialized_start=2073 + _globals['_ADDTAGRESPONSE']._serialized_end=2089 + _globals['_CREATETRIGGERREQUEST']._serialized_start=2091 + _globals['_CREATETRIGGERREQUEST']._serialized_end=2189 + _globals['_CREATETRIGGERRESPONSE']._serialized_start=2191 + _globals['_CREATETRIGGERRESPONSE']._serialized_end=2214 + _globals['_DELETETRIGGERREQUEST']._serialized_start=2216 + _globals['_DELETETRIGGERREQUEST']._serialized_end=2296 + _globals['_DELETETRIGGERRESPONSE']._serialized_start=2298 + _globals['_DELETETRIGGERRESPONSE']._serialized_end=2321 + _globals['_ARTIFACTPRODUCER']._serialized_start=2324 + _globals['_ARTIFACTPRODUCER']._serialized_end=2452 + _globals['_REGISTERPRODUCERREQUEST']._serialized_start=2454 + _globals['_REGISTERPRODUCERREQUEST']._serialized_end=2546 + _globals['_ARTIFACTCONSUMER']._serialized_start=2548 + _globals['_ARTIFACTCONSUMER']._serialized_end=2675 + _globals['_REGISTERCONSUMERREQUEST']._serialized_start=2677 + _globals['_REGISTERCONSUMERREQUEST']._serialized_end=2769 + _globals['_REGISTERRESPONSE']._serialized_start=2771 + _globals['_REGISTERRESPONSE']._serialized_end=2789 + _globals['_ARTIFACTREGISTRY']._serialized_start=2792 + _globals['_ARTIFACTREGISTRY']._serialized_end=4259 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi index 1389d3da24..f06f8f35f3 100644 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi @@ -1,4 +1,5 @@ from google.protobuf import any_pb2 as _any_pb2 +from google.api import annotations_pb2 as _annotations_pb2 from flyteidl.admin import launch_plan_pb2 as _launch_plan_pb2 from flyteidl.core import literals_pb2 as _literals_pb2 from flyteidl.core import types_pb2 as _types_pb2 @@ -99,13 +100,19 @@ class ListArtifactNamesResponse(_message.Message): artifact_keys: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactKey] def __init__(self, artifact_keys: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]]] = ...) -> None: ... -class ListArtifactsRequest(_message.Message): - __slots__ = ["artifact_key"] +class SearchArtifactsRequest(_message.Message): + __slots__ = ["artifact_key", "filters", "token", "limit"] ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] artifact_key: _artifact_id_pb2.ArtifactKey - def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ...) -> None: ... + filters: str + token: str + limit: int + def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ..., filters: _Optional[str] = ..., token: _Optional[str] = ..., limit: _Optional[int] = ...) -> None: ... -class ListArtifactsResponse(_message.Message): +class SearchArtifactsResponse(_message.Message): __slots__ = ["artifacts"] ARTIFACTS_FIELD_NUMBER: _ClassVar[int] artifacts: _containers.RepeatedCompositeFieldContainer[Artifact] diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py index f4d13fe4d6..6e01592a77 100644 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py @@ -24,6 +24,11 @@ def __init__(self, channel): request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactRequest.SerializeToString, response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactResponse.FromString, ) + self.SearchArtifacts = channel.unary_unary( + '/flyteidl.artifact.ArtifactRegistry/SearchArtifacts', + request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsRequest.SerializeToString, + response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, + ) self.CreateTrigger = channel.unary_unary( '/flyteidl.artifact.ArtifactRegistry/CreateTrigger', request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerRequest.SerializeToString, @@ -66,12 +71,14 @@ def GetArtifact(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def CreateTrigger(self, request, context): - """rpc ListArtifactNames (ListArtifactNamesRequest) returns (ListArtifactNamesResponse) {} - - rpc ListArtifacts (ListArtifactsRequest) returns (ListArtifactsResponse) {} + def SearchArtifacts(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') - """ + def CreateTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') @@ -113,6 +120,11 @@ def add_ArtifactRegistryServicer_to_server(servicer, server): request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactRequest.FromString, response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactResponse.SerializeToString, ), + 'SearchArtifacts': grpc.unary_unary_rpc_method_handler( + servicer.SearchArtifacts, + request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsRequest.FromString, + response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.SerializeToString, + ), 'CreateTrigger': grpc.unary_unary_rpc_method_handler( servicer.CreateTrigger, request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerRequest.FromString, @@ -182,6 +194,23 @@ def GetArtifact(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def SearchArtifacts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/SearchArtifacts', + flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsRequest.SerializeToString, + flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def CreateTrigger(request, target, diff --git a/flyteidl/gen/pb_rust/flyteidl.artifact.rs b/flyteidl/gen/pb_rust/flyteidl.artifact.rs index e2d65967b9..0cb070091e 100644 --- a/flyteidl/gen/pb_rust/flyteidl.artifact.rs +++ b/flyteidl/gen/pb_rust/flyteidl.artifact.rs @@ -91,13 +91,19 @@ pub struct ListArtifactNamesResponse { } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListArtifactsRequest { +pub struct SearchArtifactsRequest { #[prost(message, optional, tag="1")] pub artifact_key: ::core::option::Option, + #[prost(string, tag="2")] + pub filters: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + #[prost(int32, tag="4")] + pub limit: i32, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListArtifactsResponse { +pub struct SearchArtifactsResponse { #[prost(message, repeated, tag="1")] pub artifacts: ::prost::alloc::vec::Vec, } diff --git a/flyteidl/protos/flyteidl/artifact/artifacts.proto b/flyteidl/protos/flyteidl/artifact/artifacts.proto index a0656ca289..3fad917dc8 100644 --- a/flyteidl/protos/flyteidl/artifact/artifacts.proto +++ b/flyteidl/protos/flyteidl/artifact/artifacts.proto @@ -3,8 +3,8 @@ package flyteidl.artifact; option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact"; - import "google/protobuf/any.proto"; +import "google/api/annotations.proto"; import "flyteidl/admin/launch_plan.proto"; import "flyteidl/core/literals.proto"; @@ -87,11 +87,15 @@ message ListArtifactNamesResponse { repeated core.ArtifactKey artifact_keys = 1; } -message ListArtifactsRequest { +message SearchArtifactsRequest { core.ArtifactKey artifact_key = 1; + + string filters = 2; + string token = 3; + int32 limit = 4; } -message ListArtifactsResponse { +message SearchArtifactsResponse { repeated Artifact artifacts = 1; } @@ -147,13 +151,27 @@ message RegisterConsumerRequest { message RegisterResponse {} service ArtifactRegistry { - rpc CreateArtifact (CreateArtifactRequest) returns (CreateArtifactResponse) {} + rpc CreateArtifact (CreateArtifactRequest) returns (CreateArtifactResponse) { + + } + + rpc GetArtifact (GetArtifactRequest) returns (GetArtifactResponse) { + option (google.api.http) = { + get: "/data/v1/artifacts" + additional_bindings {get: "/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}"} + additional_bindings {get: "/data/v1/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}"} + additional_bindings {get: "/data/v1/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}"} + }; + - rpc GetArtifact (GetArtifactRequest) returns (GetArtifactResponse) {} + } -// rpc ListArtifactNames (ListArtifactNamesRequest) returns (ListArtifactNamesResponse) {} -// -// rpc ListArtifacts (ListArtifactsRequest) returns (ListArtifactsResponse) {} + rpc SearchArtifacts (SearchArtifactsRequest) returns (SearchArtifactsResponse) { + option (google.api.http) = { + get: "/data/v1/query/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}" + additional_bindings {get: "/data/v1/query/{artifact_key.project}/{artifact_key.domain}"} + }; + } rpc CreateTrigger (CreateTriggerRequest) returns (CreateTriggerResponse) {}