From e791a7694acfc4392824d4a5af43570a25d9992d Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Wed, 8 Jan 2025 15:37:04 -0500 Subject: [PATCH] Upgrade connectrpc to v1.18.1 --- go.mod | 20 ++-- go.sum | 40 +++---- make/go/dep_protoc_gen_connect_go.mk | 4 +- .../auditv1alpha1connect/service.connect.go | 12 +-- .../registryv1alpha1connect/admin.connect.go | 72 +++++-------- .../registryv1alpha1connect/authn.connect.go | 17 ++- .../registryv1alpha1connect/authz.connect.go | 67 +++++------- .../convert.connect.go | 12 +-- .../display.connect.go | 52 ++++----- .../registryv1alpha1connect/doc.connect.go | 32 +++--- .../download.connect.go | 17 ++- .../registryv1alpha1connect/github.connect.go | 12 +-- .../registryv1alpha1connect/image.connect.go | 12 +-- .../jsonschema.connect.go | 12 +-- .../organization.connect.go | 87 ++++++--------- .../registryv1alpha1connect/owner.connect.go | 12 +-- .../plugin_curation.connect.go | 35 +++--- .../registryv1alpha1connect/push.connect.go | 17 ++- .../recommendation.connect.go | 22 ++-- .../reference.connect.go | 12 +-- .../repository.connect.go | 102 +++++++----------- .../repository_branch.connect.go | 27 ++--- .../repository_commit.connect.go | 32 +++--- .../repository_tag.connect.go | 32 +++--- .../resolve.connect.go | 60 +++++------ .../resource.connect.go | 12 +-- .../registryv1alpha1connect/schema.connect.go | 17 ++- .../scim_token.connect.go | 22 ++-- .../registryv1alpha1connect/search.connect.go | 27 ++--- .../registryv1alpha1connect/studio.connect.go | 17 ++- .../studio_request.connect.go | 27 ++--- .../registryv1alpha1connect/token.connect.go | 27 ++--- .../registryv1alpha1connect/user.connect.go | 67 +++++------- .../webhook.connect.go | 22 ++-- .../webhookv1alpha1connect/event.connect.go | 12 +-- 35 files changed, 410 insertions(+), 659 deletions(-) diff --git a/go.mod b/go.mod index 67e24ee1de..9939ce1244 100644 --- a/go.mod +++ b/go.mod @@ -7,15 +7,15 @@ toolchain go1.23.4 require ( buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.36.1-20241031151143-70f632351282.1 buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.1-20241127180247-a33202765966.1 - buf.build/gen/go/bufbuild/registry/connectrpc/go v1.17.0-20241227185654-946b6dd39b27.1 - buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.36.1-20241227185654-946b6dd39b27.1 + buf.build/gen/go/bufbuild/registry/connectrpc/go v1.17.0-20250106231242-56271afbd6ce.1 + buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.36.1-20250106231242-56271afbd6ce.1 buf.build/go/bufplugin v0.6.0 buf.build/go/protoyaml v0.3.1 buf.build/go/spdx v0.2.0 - connectrpc.com/connect v1.17.0 + connectrpc.com/connect v1.18.1 connectrpc.com/otelconnect v0.7.1 github.com/bufbuild/protocompile v0.14.1 - github.com/bufbuild/protoplugin v0.0.0-20240911180120-7bb73e41a54a + github.com/bufbuild/protoplugin v0.0.0-20250106231243-3a819552c9d9 github.com/bufbuild/protovalidate-go v0.8.2 github.com/docker/docker v27.4.1+incompatible github.com/go-chi/chi/v5 v5.2.0 @@ -40,13 +40,13 @@ require ( go.lsp.dev/protocol v0.12.0 go.uber.org/zap v1.27.0 go.uber.org/zap/exp v0.3.0 - golang.org/x/crypto v0.31.0 - golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329 + golang.org/x/crypto v0.32.0 + golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 golang.org/x/mod v0.22.0 - golang.org/x/net v0.33.0 + golang.org/x/net v0.34.0 golang.org/x/sync v0.10.0 golang.org/x/term v0.28.0 - golang.org/x/tools v0.28.0 + golang.org/x/tools v0.29.0 google.golang.org/protobuf v1.36.1 gopkg.in/yaml.v3 v3.0.1 pluginrpc.com/pluginrpc v0.5.0 @@ -123,7 +123,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/sys v0.29.0 // indirect golang.org/x/text v0.21.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20250102185135-69823020774d // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250102185135-69823020774d // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 // indirect google.golang.org/grpc v1.69.2 // indirect ) diff --git a/go.sum b/go.sum index e23c2ccf98..9d587f00d9 100644 --- a/go.sum +++ b/go.sum @@ -2,10 +2,10 @@ buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.36.1-20241031151143-70 buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.36.1-20241031151143-70f632351282.1/go.mod h1:VfQZo/3dl9O9Yg1nseI0gNGDXvLrNQfBRMMIhV9fyII= buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.1-20241127180247-a33202765966.1 h1:v223wh/bhlSHSc0tU9PXRWXHhkw3UWMtth7TmYGfHAQ= buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.1-20241127180247-a33202765966.1/go.mod h1:/zlFuuECgFgewxwW6qQKgvMJ07YZkWlVkcSxEhJprJw= -buf.build/gen/go/bufbuild/registry/connectrpc/go v1.17.0-20241227185654-946b6dd39b27.1 h1:410axzwOITvAHu1w8pN9Gwhmk1QxrWneq6I/gowLfH8= -buf.build/gen/go/bufbuild/registry/connectrpc/go v1.17.0-20241227185654-946b6dd39b27.1/go.mod h1:i4UUrB1UIqScCCj4d+OFXpUREDDz+p1gCl9WfjpYweY= -buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.36.1-20241227185654-946b6dd39b27.1 h1:5vU2X68XNaJtF/NGS9shI/0X0jze8/5XH4RmHbsZg5w= -buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.36.1-20241227185654-946b6dd39b27.1/go.mod h1:DgqZjUk2avpwh8jiMHBOoVXUyceQ3HxNwcRLEWWwNtQ= +buf.build/gen/go/bufbuild/registry/connectrpc/go v1.17.0-20250106231242-56271afbd6ce.1 h1:IyfVoYit8qFTEOp1GWPgOwQW6iIuhKr5oVKa6OCcDnA= +buf.build/gen/go/bufbuild/registry/connectrpc/go v1.17.0-20250106231242-56271afbd6ce.1/go.mod h1:3UZPKStnWVMfbULdSRtJjV3SBqiX2Xyme1eArfp/hak= +buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.36.1-20250106231242-56271afbd6ce.1 h1:QhCMGh7rJuo/VQtNebErhiPoyxmW7cA+23dtXcDrSeU= +buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.36.1-20250106231242-56271afbd6ce.1/go.mod h1:DgqZjUk2avpwh8jiMHBOoVXUyceQ3HxNwcRLEWWwNtQ= buf.build/gen/go/pluginrpc/pluginrpc/protocolbuffers/go v1.36.1-20241007202033-cf42259fcbfc.1 h1:0Pi0EQh6z2zJigi4UonoqczBQjvOzZ0CFYUfwPRM41M= buf.build/gen/go/pluginrpc/pluginrpc/protocolbuffers/go v1.36.1-20241007202033-cf42259fcbfc.1/go.mod h1:Uy8SKofLXIAUjswDmz6AIN8W+bGVTF4kNczZikMPHLM= buf.build/go/bufplugin v0.6.0 h1:3lhoh+0z+IUPS3ZajTPn/27LaLIkero2BDVnV7yXD1s= @@ -17,8 +17,8 @@ buf.build/go/spdx v0.2.0/go.mod h1:bXdwQFem9Si3nsbNy8aJKGPoaPi5DKwdeEp5/ArZ6w8= cel.dev/expr v0.19.1 h1:NciYrtDRIR0lNCnH1LFJegdjspNx9fI59O7TWcua/W4= cel.dev/expr v0.19.1/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -connectrpc.com/connect v1.17.0 h1:W0ZqMhtVzn9Zhn2yATuUokDLO5N+gIuBWMOnsQrfmZk= -connectrpc.com/connect v1.17.0/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= +connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw= +connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= connectrpc.com/otelconnect v0.7.1 h1:scO5pOb0i4yUE66CnNrHeK1x51yq0bE0ehPg6WvzXJY= connectrpc.com/otelconnect v0.7.1/go.mod h1:dh3bFgHBTb2bkqGCeVVOtHJreSns7uu9wwL2Tbz17ms= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU= @@ -34,8 +34,8 @@ github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYW github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw= github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c= -github.com/bufbuild/protoplugin v0.0.0-20240911180120-7bb73e41a54a h1:l3RhVoG0RtC61h6TVWnkniGj4TgBebuyPQRdleFAmTg= -github.com/bufbuild/protoplugin v0.0.0-20240911180120-7bb73e41a54a/go.mod h1:c5D8gWRIZ2HLWO3gXYTtUfw/hbJyD8xikv2ooPxnklQ= +github.com/bufbuild/protoplugin v0.0.0-20250106231243-3a819552c9d9 h1:kAWER21DzhzU7ys8LL1WkSfbGkwXv+tM30hyEsYrW2k= +github.com/bufbuild/protoplugin v0.0.0-20250106231243-3a819552c9d9/go.mod h1:c5D8gWRIZ2HLWO3gXYTtUfw/hbJyD8xikv2ooPxnklQ= github.com/bufbuild/protovalidate-go v0.8.2 h1:sgzXHkHYP6HnAsL2Rd3I1JxkYUyEQUv9awU1PduMxbM= github.com/bufbuild/protovalidate-go v0.8.2/go.mod h1:K6w8iPNAXBoIivVueSELbUeUl+MmeTQfCDSug85pn3M= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= @@ -307,11 +307,11 @@ go.uber.org/zap/exp v0.3.0/go.mod h1:5I384qq7XGxYyByIhHm6jg5CHkGY0nsTfbDLgDDlgJQ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 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.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= -golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329 h1:9kj3STMvgqy3YA4VQXBrN7925ICMxD5wzMRcgA30588= -golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329/go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c= +golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 h1:yqrTHse8TCMW1M1ZCP+VAR/l0kKxwaAIqN/il7x4voA= +golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8/go.mod h1:tujkw807nyEEAamNbDrEGzRav+ilXA7PCRAd6xsmwiU= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= @@ -328,8 +328,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= -golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= +golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 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= @@ -366,8 +366,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8= -golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw= +golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= +golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= 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= @@ -377,10 +377,10 @@ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto/googleapis/api v0.0.0-20250102185135-69823020774d h1:H8tOf8XM88HvKqLTxe755haY6r1fqqzLbEnfrmLXlSA= -google.golang.org/genproto/googleapis/api v0.0.0-20250102185135-69823020774d/go.mod h1:2v7Z7gP2ZUOGsaFyxATQSRoBnKygqVq2Cwnvom7QiqY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250102185135-69823020774d h1:xJJRGY7TJcvIlpSrN3K6LAWgNFUILlO+OMAqtg9aqnw= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250102185135-69823020774d/go.mod h1:3ENsm/5D1mzDyhpzeRi1NR784I0BcofWBoSc5QqqMK4= +google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 h1:GVIKPyP/kLIyVOgOnTwFOrvQaQUzOzGMCxgFUOEmm24= +google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422/go.mod h1:b6h1vNKhxaSoEI+5jc3PJUCustfli/mRab7295pY7rw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 h1:3UsHvIr4Wc2aW4brOaSCmcxh9ksica6fHEr8P1XhkYw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422/go.mod h1:3ENsm/5D1mzDyhpzeRi1NR784I0BcofWBoSc5QqqMK4= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/make/go/dep_protoc_gen_connect_go.mk b/make/go/dep_protoc_gen_connect_go.mk index ef32e3bc02..beb2ecc2ab 100644 --- a/make/go/dep_protoc_gen_connect_go.mk +++ b/make/go/dep_protoc_gen_connect_go.mk @@ -7,8 +7,8 @@ $(call _assert_var,CACHE_VERSIONS) $(call _assert_var,CACHE_BIN) # Settable -# https://github.com/connectrpc/connect-go 20240920 checked 20240920 -CONNECT_VERSION ?= v1.17.0 +# https://github.com/connectrpc/connect-go 20250108 checked 20250108 +CONNECT_VERSION ?= v1.18.1 GO_GET_PKGS := $(GO_GET_PKGS) \ connectrpc.com/connect@$(CONNECT_VERSION) diff --git a/private/gen/proto/connect/buf/alpha/audit/v1alpha1/auditv1alpha1connect/service.connect.go b/private/gen/proto/connect/buf/alpha/audit/v1alpha1/auditv1alpha1connect/service.connect.go index b275e94e72..6492dab23b 100644 --- a/private/gen/proto/connect/buf/alpha/audit/v1alpha1/auditv1alpha1connect/service.connect.go +++ b/private/gen/proto/connect/buf/alpha/audit/v1alpha1/auditv1alpha1connect/service.connect.go @@ -52,12 +52,6 @@ const ( AuditServiceListAuditedEventsProcedure = "/buf.alpha.audit.v1alpha1.AuditService/ListAuditedEvents" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - auditServiceServiceDescriptor = v1alpha1.File_buf_alpha_audit_v1alpha1_service_proto.Services().ByName("AuditService") - auditServiceListAuditedEventsMethodDescriptor = auditServiceServiceDescriptor.Methods().ByName("ListAuditedEvents") -) - // AuditServiceClient is a client for the buf.alpha.audit.v1alpha1.AuditService service. type AuditServiceClient interface { // ListAuditedEvents lists audited events recorded in the BSR instance. @@ -73,11 +67,12 @@ type AuditServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewAuditServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuditServiceClient { baseURL = strings.TrimRight(baseURL, "/") + auditServiceMethods := v1alpha1.File_buf_alpha_audit_v1alpha1_service_proto.Services().ByName("AuditService").Methods() return &auditServiceClient{ listAuditedEvents: connect.NewClient[v1alpha1.ListAuditedEventsRequest, v1alpha1.ListAuditedEventsResponse]( httpClient, baseURL+AuditServiceListAuditedEventsProcedure, - connect.WithSchema(auditServiceListAuditedEventsMethodDescriptor), + connect.WithSchema(auditServiceMethods.ByName("ListAuditedEvents")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -106,10 +101,11 @@ type AuditServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewAuditServiceHandler(svc AuditServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + auditServiceMethods := v1alpha1.File_buf_alpha_audit_v1alpha1_service_proto.Services().ByName("AuditService").Methods() auditServiceListAuditedEventsHandler := connect.NewUnaryHandler( AuditServiceListAuditedEventsProcedure, svc.ListAuditedEvents, - connect.WithSchema(auditServiceListAuditedEventsMethodDescriptor), + connect.WithSchema(auditServiceMethods.ByName("ListAuditedEvents")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/admin.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/admin.connect.go index 00cba4626f..30f53eb136 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/admin.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/admin.connect.go @@ -88,24 +88,6 @@ const ( AdminServiceGetClusterUsageProcedure = "/buf.alpha.registry.v1alpha1.AdminService/GetClusterUsage" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - adminServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_admin_proto.Services().ByName("AdminService") - adminServiceForceDeleteUserMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ForceDeleteUser") - adminServiceUpdateUserVerificationStatusMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateUserVerificationStatus") - adminServiceUpdateOrganizationVerificationStatusMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateOrganizationVerificationStatus") - adminServiceCreateMachineUserMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateMachineUser") - adminServiceGetBreakingChangePolicyMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetBreakingChangePolicy") - adminServiceUpdateBreakingChangePolicyMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateBreakingChangePolicy") - adminServiceGetUniquenessPolicyMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetUniquenessPolicy") - adminServiceUpdateUniquenessPolicyMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateUniquenessPolicy") - adminServiceListServerUniquenessCollisionsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListServerUniquenessCollisions") - adminServiceRunServerUniquenessBackfillTaskMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("RunServerUniquenessBackfillTask") - adminServiceGetReviewFlowGracePeriodPolicyMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetReviewFlowGracePeriodPolicy") - adminServiceUpdateReviewFlowGracePeriodPolicyMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateReviewFlowGracePeriodPolicy") - adminServiceGetClusterUsageMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetClusterUsage") -) - // AdminServiceClient is a client for the buf.alpha.registry.v1alpha1.AdminService service. type AdminServiceClient interface { // ForceDeleteUser forces to delete a user. Resources and organizations that are @@ -150,89 +132,90 @@ type AdminServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewAdminServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AdminServiceClient { baseURL = strings.TrimRight(baseURL, "/") + adminServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_admin_proto.Services().ByName("AdminService").Methods() return &adminServiceClient{ forceDeleteUser: connect.NewClient[v1alpha1.ForceDeleteUserRequest, v1alpha1.ForceDeleteUserResponse]( httpClient, baseURL+AdminServiceForceDeleteUserProcedure, - connect.WithSchema(adminServiceForceDeleteUserMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("ForceDeleteUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), updateUserVerificationStatus: connect.NewClient[v1alpha1.UpdateUserVerificationStatusRequest, v1alpha1.UpdateUserVerificationStatusResponse]( httpClient, baseURL+AdminServiceUpdateUserVerificationStatusProcedure, - connect.WithSchema(adminServiceUpdateUserVerificationStatusMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateUserVerificationStatus")), connect.WithClientOptions(opts...), ), updateOrganizationVerificationStatus: connect.NewClient[v1alpha1.UpdateOrganizationVerificationStatusRequest, v1alpha1.UpdateOrganizationVerificationStatusResponse]( httpClient, baseURL+AdminServiceUpdateOrganizationVerificationStatusProcedure, - connect.WithSchema(adminServiceUpdateOrganizationVerificationStatusMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateOrganizationVerificationStatus")), connect.WithClientOptions(opts...), ), createMachineUser: connect.NewClient[v1alpha1.CreateMachineUserRequest, v1alpha1.CreateMachineUserResponse]( httpClient, baseURL+AdminServiceCreateMachineUserProcedure, - connect.WithSchema(adminServiceCreateMachineUserMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("CreateMachineUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), getBreakingChangePolicy: connect.NewClient[v1alpha1.GetBreakingChangePolicyRequest, v1alpha1.GetBreakingChangePolicyResponse]( httpClient, baseURL+AdminServiceGetBreakingChangePolicyProcedure, - connect.WithSchema(adminServiceGetBreakingChangePolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetBreakingChangePolicy")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), updateBreakingChangePolicy: connect.NewClient[v1alpha1.UpdateBreakingChangePolicyRequest, v1alpha1.UpdateBreakingChangePolicyResponse]( httpClient, baseURL+AdminServiceUpdateBreakingChangePolicyProcedure, - connect.WithSchema(adminServiceUpdateBreakingChangePolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateBreakingChangePolicy")), connect.WithClientOptions(opts...), ), getUniquenessPolicy: connect.NewClient[v1alpha1.GetUniquenessPolicyRequest, v1alpha1.GetUniquenessPolicyResponse]( httpClient, baseURL+AdminServiceGetUniquenessPolicyProcedure, - connect.WithSchema(adminServiceGetUniquenessPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetUniquenessPolicy")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), updateUniquenessPolicy: connect.NewClient[v1alpha1.UpdateUniquenessPolicyRequest, v1alpha1.UpdateUniquenessPolicyResponse]( httpClient, baseURL+AdminServiceUpdateUniquenessPolicyProcedure, - connect.WithSchema(adminServiceUpdateUniquenessPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateUniquenessPolicy")), connect.WithClientOptions(opts...), ), listServerUniquenessCollisions: connect.NewClient[v1alpha1.ListServerUniquenessCollisionsRequest, v1alpha1.ListServerUniquenessCollisionsResponse]( httpClient, baseURL+AdminServiceListServerUniquenessCollisionsProcedure, - connect.WithSchema(adminServiceListServerUniquenessCollisionsMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("ListServerUniquenessCollisions")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), runServerUniquenessBackfillTask: connect.NewClient[v1alpha1.RunServerUniquenessBackfillTaskRequest, v1alpha1.RunServerUniquenessBackfillTaskResponse]( httpClient, baseURL+AdminServiceRunServerUniquenessBackfillTaskProcedure, - connect.WithSchema(adminServiceRunServerUniquenessBackfillTaskMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("RunServerUniquenessBackfillTask")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), getReviewFlowGracePeriodPolicy: connect.NewClient[v1alpha1.GetReviewFlowGracePeriodPolicyRequest, v1alpha1.GetReviewFlowGracePeriodPolicyResponse]( httpClient, baseURL+AdminServiceGetReviewFlowGracePeriodPolicyProcedure, - connect.WithSchema(adminServiceGetReviewFlowGracePeriodPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetReviewFlowGracePeriodPolicy")), connect.WithClientOptions(opts...), ), updateReviewFlowGracePeriodPolicy: connect.NewClient[v1alpha1.UpdateReviewFlowGracePeriodPolicyRequest, v1alpha1.UpdateReviewFlowGracePeriodPolicyResponse]( httpClient, baseURL+AdminServiceUpdateReviewFlowGracePeriodPolicyProcedure, - connect.WithSchema(adminServiceUpdateReviewFlowGracePeriodPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateReviewFlowGracePeriodPolicy")), connect.WithClientOptions(opts...), ), getClusterUsage: connect.NewClient[v1alpha1.GetClusterUsageRequest, v1alpha1.GetClusterUsageResponse]( httpClient, baseURL+AdminServiceGetClusterUsageProcedure, - connect.WithSchema(adminServiceGetClusterUsageMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetClusterUsage")), connect.WithClientOptions(opts...), ), } @@ -368,88 +351,89 @@ type AdminServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + adminServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_admin_proto.Services().ByName("AdminService").Methods() adminServiceForceDeleteUserHandler := connect.NewUnaryHandler( AdminServiceForceDeleteUserProcedure, svc.ForceDeleteUser, - connect.WithSchema(adminServiceForceDeleteUserMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("ForceDeleteUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) adminServiceUpdateUserVerificationStatusHandler := connect.NewUnaryHandler( AdminServiceUpdateUserVerificationStatusProcedure, svc.UpdateUserVerificationStatus, - connect.WithSchema(adminServiceUpdateUserVerificationStatusMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateUserVerificationStatus")), connect.WithHandlerOptions(opts...), ) adminServiceUpdateOrganizationVerificationStatusHandler := connect.NewUnaryHandler( AdminServiceUpdateOrganizationVerificationStatusProcedure, svc.UpdateOrganizationVerificationStatus, - connect.WithSchema(adminServiceUpdateOrganizationVerificationStatusMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateOrganizationVerificationStatus")), connect.WithHandlerOptions(opts...), ) adminServiceCreateMachineUserHandler := connect.NewUnaryHandler( AdminServiceCreateMachineUserProcedure, svc.CreateMachineUser, - connect.WithSchema(adminServiceCreateMachineUserMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("CreateMachineUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) adminServiceGetBreakingChangePolicyHandler := connect.NewUnaryHandler( AdminServiceGetBreakingChangePolicyProcedure, svc.GetBreakingChangePolicy, - connect.WithSchema(adminServiceGetBreakingChangePolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetBreakingChangePolicy")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) adminServiceUpdateBreakingChangePolicyHandler := connect.NewUnaryHandler( AdminServiceUpdateBreakingChangePolicyProcedure, svc.UpdateBreakingChangePolicy, - connect.WithSchema(adminServiceUpdateBreakingChangePolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateBreakingChangePolicy")), connect.WithHandlerOptions(opts...), ) adminServiceGetUniquenessPolicyHandler := connect.NewUnaryHandler( AdminServiceGetUniquenessPolicyProcedure, svc.GetUniquenessPolicy, - connect.WithSchema(adminServiceGetUniquenessPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetUniquenessPolicy")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) adminServiceUpdateUniquenessPolicyHandler := connect.NewUnaryHandler( AdminServiceUpdateUniquenessPolicyProcedure, svc.UpdateUniquenessPolicy, - connect.WithSchema(adminServiceUpdateUniquenessPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateUniquenessPolicy")), connect.WithHandlerOptions(opts...), ) adminServiceListServerUniquenessCollisionsHandler := connect.NewUnaryHandler( AdminServiceListServerUniquenessCollisionsProcedure, svc.ListServerUniquenessCollisions, - connect.WithSchema(adminServiceListServerUniquenessCollisionsMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("ListServerUniquenessCollisions")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) adminServiceRunServerUniquenessBackfillTaskHandler := connect.NewUnaryHandler( AdminServiceRunServerUniquenessBackfillTaskProcedure, svc.RunServerUniquenessBackfillTask, - connect.WithSchema(adminServiceRunServerUniquenessBackfillTaskMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("RunServerUniquenessBackfillTask")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) adminServiceGetReviewFlowGracePeriodPolicyHandler := connect.NewUnaryHandler( AdminServiceGetReviewFlowGracePeriodPolicyProcedure, svc.GetReviewFlowGracePeriodPolicy, - connect.WithSchema(adminServiceGetReviewFlowGracePeriodPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetReviewFlowGracePeriodPolicy")), connect.WithHandlerOptions(opts...), ) adminServiceUpdateReviewFlowGracePeriodPolicyHandler := connect.NewUnaryHandler( AdminServiceUpdateReviewFlowGracePeriodPolicyProcedure, svc.UpdateReviewFlowGracePeriodPolicy, - connect.WithSchema(adminServiceUpdateReviewFlowGracePeriodPolicyMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("UpdateReviewFlowGracePeriodPolicy")), connect.WithHandlerOptions(opts...), ) adminServiceGetClusterUsageHandler := connect.NewUnaryHandler( AdminServiceGetClusterUsageProcedure, svc.GetClusterUsage, - connect.WithSchema(adminServiceGetClusterUsageMethodDescriptor), + connect.WithSchema(adminServiceMethods.ByName("GetClusterUsage")), connect.WithHandlerOptions(opts...), ) return "/buf.alpha.registry.v1alpha1.AdminService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authn.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authn.connect.go index 5feff138da..d6e5f1a49c 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authn.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authn.connect.go @@ -55,13 +55,6 @@ const ( AuthnServiceGetCurrentUserSubjectProcedure = "/buf.alpha.registry.v1alpha1.AuthnService/GetCurrentUserSubject" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - authnServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_authn_proto.Services().ByName("AuthnService") - authnServiceGetCurrentUserMethodDescriptor = authnServiceServiceDescriptor.Methods().ByName("GetCurrentUser") - authnServiceGetCurrentUserSubjectMethodDescriptor = authnServiceServiceDescriptor.Methods().ByName("GetCurrentUserSubject") -) - // AuthnServiceClient is a client for the buf.alpha.registry.v1alpha1.AuthnService service. type AuthnServiceClient interface { // GetCurrentUser gets information associated with the current user. @@ -83,18 +76,19 @@ type AuthnServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewAuthnServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthnServiceClient { baseURL = strings.TrimRight(baseURL, "/") + authnServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_authn_proto.Services().ByName("AuthnService").Methods() return &authnServiceClient{ getCurrentUser: connect.NewClient[v1alpha1.GetCurrentUserRequest, v1alpha1.GetCurrentUserResponse]( httpClient, baseURL+AuthnServiceGetCurrentUserProcedure, - connect.WithSchema(authnServiceGetCurrentUserMethodDescriptor), + connect.WithSchema(authnServiceMethods.ByName("GetCurrentUser")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getCurrentUserSubject: connect.NewClient[v1alpha1.GetCurrentUserSubjectRequest, v1alpha1.GetCurrentUserSubjectResponse]( httpClient, baseURL+AuthnServiceGetCurrentUserSubjectProcedure, - connect.WithSchema(authnServiceGetCurrentUserSubjectMethodDescriptor), + connect.WithSchema(authnServiceMethods.ByName("GetCurrentUserSubject")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -135,17 +129,18 @@ type AuthnServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewAuthnServiceHandler(svc AuthnServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + authnServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_authn_proto.Services().ByName("AuthnService").Methods() authnServiceGetCurrentUserHandler := connect.NewUnaryHandler( AuthnServiceGetCurrentUserProcedure, svc.GetCurrentUser, - connect.WithSchema(authnServiceGetCurrentUserMethodDescriptor), + connect.WithSchema(authnServiceMethods.ByName("GetCurrentUser")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authnServiceGetCurrentUserSubjectHandler := connect.NewUnaryHandler( AuthnServiceGetCurrentUserSubjectProcedure, svc.GetCurrentUserSubject, - connect.WithSchema(authnServiceGetCurrentUserSubjectMethodDescriptor), + connect.WithSchema(authnServiceMethods.ByName("GetCurrentUserSubject")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authz.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authz.connect.go index 538d473008..994711c62c 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authz.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/authz.connect.go @@ -85,23 +85,6 @@ const ( AuthzServiceUserCanReviewCommitsProcedure = "/buf.alpha.registry.v1alpha1.AuthzService/UserCanReviewCommits" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - authzServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_authz_proto.Services().ByName("AuthzService") - authzServiceUserCanCreateOrganizationRepositoryMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanCreateOrganizationRepository") - authzServiceUserCanSeeRepositorySettingsMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanSeeRepositorySettings") - authzServiceUserCanSeeOrganizationSettingsMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanSeeOrganizationSettings") - authzServiceUserCanAddOrganizationMemberMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanAddOrganizationMember") - authzServiceUserCanUpdateOrganizationMemberMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanUpdateOrganizationMember") - authzServiceUserCanRemoveOrganizationMemberMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanRemoveOrganizationMember") - authzServiceUserCanDeleteOrganizationMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanDeleteOrganization") - authzServiceUserCanDeleteRepositoryMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanDeleteRepository") - authzServiceUserCanDeleteUserMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanDeleteUser") - authzServiceUserCanSeeServerAdminPanelMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanSeeServerAdminPanel") - authzServiceUserCanManageRepositoryContributorsMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanManageRepositoryContributors") - authzServiceUserCanReviewCommitsMethodDescriptor = authzServiceServiceDescriptor.Methods().ByName("UserCanReviewCommits") -) - // AuthzServiceClient is a client for the buf.alpha.registry.v1alpha1.AuthzService service. type AuthzServiceClient interface { // UserCanCreateOrganizationRepository returns whether the user is authorized @@ -151,88 +134,89 @@ type AuthzServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewAuthzServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthzServiceClient { baseURL = strings.TrimRight(baseURL, "/") + authzServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_authz_proto.Services().ByName("AuthzService").Methods() return &authzServiceClient{ userCanCreateOrganizationRepository: connect.NewClient[v1alpha1.UserCanCreateOrganizationRepositoryRequest, v1alpha1.UserCanCreateOrganizationRepositoryResponse]( httpClient, baseURL+AuthzServiceUserCanCreateOrganizationRepositoryProcedure, - connect.WithSchema(authzServiceUserCanCreateOrganizationRepositoryMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanCreateOrganizationRepository")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanSeeRepositorySettings: connect.NewClient[v1alpha1.UserCanSeeRepositorySettingsRequest, v1alpha1.UserCanSeeRepositorySettingsResponse]( httpClient, baseURL+AuthzServiceUserCanSeeRepositorySettingsProcedure, - connect.WithSchema(authzServiceUserCanSeeRepositorySettingsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanSeeRepositorySettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanSeeOrganizationSettings: connect.NewClient[v1alpha1.UserCanSeeOrganizationSettingsRequest, v1alpha1.UserCanSeeOrganizationSettingsResponse]( httpClient, baseURL+AuthzServiceUserCanSeeOrganizationSettingsProcedure, - connect.WithSchema(authzServiceUserCanSeeOrganizationSettingsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanSeeOrganizationSettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanAddOrganizationMember: connect.NewClient[v1alpha1.UserCanAddOrganizationMemberRequest, v1alpha1.UserCanAddOrganizationMemberResponse]( httpClient, baseURL+AuthzServiceUserCanAddOrganizationMemberProcedure, - connect.WithSchema(authzServiceUserCanAddOrganizationMemberMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanAddOrganizationMember")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanUpdateOrganizationMember: connect.NewClient[v1alpha1.UserCanUpdateOrganizationMemberRequest, v1alpha1.UserCanUpdateOrganizationMemberResponse]( httpClient, baseURL+AuthzServiceUserCanUpdateOrganizationMemberProcedure, - connect.WithSchema(authzServiceUserCanUpdateOrganizationMemberMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanUpdateOrganizationMember")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanRemoveOrganizationMember: connect.NewClient[v1alpha1.UserCanRemoveOrganizationMemberRequest, v1alpha1.UserCanRemoveOrganizationMemberResponse]( httpClient, baseURL+AuthzServiceUserCanRemoveOrganizationMemberProcedure, - connect.WithSchema(authzServiceUserCanRemoveOrganizationMemberMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanRemoveOrganizationMember")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanDeleteOrganization: connect.NewClient[v1alpha1.UserCanDeleteOrganizationRequest, v1alpha1.UserCanDeleteOrganizationResponse]( httpClient, baseURL+AuthzServiceUserCanDeleteOrganizationProcedure, - connect.WithSchema(authzServiceUserCanDeleteOrganizationMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanDeleteOrganization")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanDeleteRepository: connect.NewClient[v1alpha1.UserCanDeleteRepositoryRequest, v1alpha1.UserCanDeleteRepositoryResponse]( httpClient, baseURL+AuthzServiceUserCanDeleteRepositoryProcedure, - connect.WithSchema(authzServiceUserCanDeleteRepositoryMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanDeleteRepository")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanDeleteUser: connect.NewClient[v1alpha1.UserCanDeleteUserRequest, v1alpha1.UserCanDeleteUserResponse]( httpClient, baseURL+AuthzServiceUserCanDeleteUserProcedure, - connect.WithSchema(authzServiceUserCanDeleteUserMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanDeleteUser")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanSeeServerAdminPanel: connect.NewClient[v1alpha1.UserCanSeeServerAdminPanelRequest, v1alpha1.UserCanSeeServerAdminPanelResponse]( httpClient, baseURL+AuthzServiceUserCanSeeServerAdminPanelProcedure, - connect.WithSchema(authzServiceUserCanSeeServerAdminPanelMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanSeeServerAdminPanel")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanManageRepositoryContributors: connect.NewClient[v1alpha1.UserCanManageRepositoryContributorsRequest, v1alpha1.UserCanManageRepositoryContributorsResponse]( httpClient, baseURL+AuthzServiceUserCanManageRepositoryContributorsProcedure, - connect.WithSchema(authzServiceUserCanManageRepositoryContributorsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanManageRepositoryContributors")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), userCanReviewCommits: connect.NewClient[v1alpha1.UserCanReviewCommitsRequest, v1alpha1.UserCanReviewCommitsResponse]( httpClient, baseURL+AuthzServiceUserCanReviewCommitsProcedure, - connect.WithSchema(authzServiceUserCanReviewCommitsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanReviewCommits")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -370,87 +354,88 @@ type AuthzServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewAuthzServiceHandler(svc AuthzServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + authzServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_authz_proto.Services().ByName("AuthzService").Methods() authzServiceUserCanCreateOrganizationRepositoryHandler := connect.NewUnaryHandler( AuthzServiceUserCanCreateOrganizationRepositoryProcedure, svc.UserCanCreateOrganizationRepository, - connect.WithSchema(authzServiceUserCanCreateOrganizationRepositoryMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanCreateOrganizationRepository")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanSeeRepositorySettingsHandler := connect.NewUnaryHandler( AuthzServiceUserCanSeeRepositorySettingsProcedure, svc.UserCanSeeRepositorySettings, - connect.WithSchema(authzServiceUserCanSeeRepositorySettingsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanSeeRepositorySettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanSeeOrganizationSettingsHandler := connect.NewUnaryHandler( AuthzServiceUserCanSeeOrganizationSettingsProcedure, svc.UserCanSeeOrganizationSettings, - connect.WithSchema(authzServiceUserCanSeeOrganizationSettingsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanSeeOrganizationSettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanAddOrganizationMemberHandler := connect.NewUnaryHandler( AuthzServiceUserCanAddOrganizationMemberProcedure, svc.UserCanAddOrganizationMember, - connect.WithSchema(authzServiceUserCanAddOrganizationMemberMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanAddOrganizationMember")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanUpdateOrganizationMemberHandler := connect.NewUnaryHandler( AuthzServiceUserCanUpdateOrganizationMemberProcedure, svc.UserCanUpdateOrganizationMember, - connect.WithSchema(authzServiceUserCanUpdateOrganizationMemberMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanUpdateOrganizationMember")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanRemoveOrganizationMemberHandler := connect.NewUnaryHandler( AuthzServiceUserCanRemoveOrganizationMemberProcedure, svc.UserCanRemoveOrganizationMember, - connect.WithSchema(authzServiceUserCanRemoveOrganizationMemberMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanRemoveOrganizationMember")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanDeleteOrganizationHandler := connect.NewUnaryHandler( AuthzServiceUserCanDeleteOrganizationProcedure, svc.UserCanDeleteOrganization, - connect.WithSchema(authzServiceUserCanDeleteOrganizationMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanDeleteOrganization")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanDeleteRepositoryHandler := connect.NewUnaryHandler( AuthzServiceUserCanDeleteRepositoryProcedure, svc.UserCanDeleteRepository, - connect.WithSchema(authzServiceUserCanDeleteRepositoryMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanDeleteRepository")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanDeleteUserHandler := connect.NewUnaryHandler( AuthzServiceUserCanDeleteUserProcedure, svc.UserCanDeleteUser, - connect.WithSchema(authzServiceUserCanDeleteUserMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanDeleteUser")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanSeeServerAdminPanelHandler := connect.NewUnaryHandler( AuthzServiceUserCanSeeServerAdminPanelProcedure, svc.UserCanSeeServerAdminPanel, - connect.WithSchema(authzServiceUserCanSeeServerAdminPanelMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanSeeServerAdminPanel")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanManageRepositoryContributorsHandler := connect.NewUnaryHandler( AuthzServiceUserCanManageRepositoryContributorsProcedure, svc.UserCanManageRepositoryContributors, - connect.WithSchema(authzServiceUserCanManageRepositoryContributorsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanManageRepositoryContributors")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) authzServiceUserCanReviewCommitsHandler := connect.NewUnaryHandler( AuthzServiceUserCanReviewCommitsProcedure, svc.UserCanReviewCommits, - connect.WithSchema(authzServiceUserCanReviewCommitsMethodDescriptor), + connect.WithSchema(authzServiceMethods.ByName("UserCanReviewCommits")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/convert.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/convert.connect.go index 1dc2ed4f29..0be44d3531 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/convert.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/convert.connect.go @@ -51,12 +51,6 @@ const ( ConvertServiceConvertProcedure = "/buf.alpha.registry.v1alpha1.ConvertService/Convert" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - convertServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_convert_proto.Services().ByName("ConvertService") - convertServiceConvertMethodDescriptor = convertServiceServiceDescriptor.Methods().ByName("Convert") -) - // ConvertServiceClient is a client for the buf.alpha.registry.v1alpha1.ConvertService service. type ConvertServiceClient interface { // Convert converts a serialized message according to @@ -73,11 +67,12 @@ type ConvertServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewConvertServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConvertServiceClient { baseURL = strings.TrimRight(baseURL, "/") + convertServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_convert_proto.Services().ByName("ConvertService").Methods() return &convertServiceClient{ convert: connect.NewClient[v1alpha1.ConvertRequest, v1alpha1.ConvertResponse]( httpClient, baseURL+ConvertServiceConvertProcedure, - connect.WithSchema(convertServiceConvertMethodDescriptor), + connect.WithSchema(convertServiceMethods.ByName("Convert")), connect.WithClientOptions(opts...), ), } @@ -107,10 +102,11 @@ type ConvertServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewConvertServiceHandler(svc ConvertServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + convertServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_convert_proto.Services().ByName("ConvertService").Methods() convertServiceConvertHandler := connect.NewUnaryHandler( ConvertServiceConvertProcedure, svc.Convert, - connect.WithSchema(convertServiceConvertMethodDescriptor), + connect.WithSchema(convertServiceMethods.ByName("Convert")), connect.WithHandlerOptions(opts...), ) return "/buf.alpha.registry.v1alpha1.ConvertService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/display.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/display.connect.go index 6a5ec0efc7..cbaed66acb 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/display.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/display.connect.go @@ -76,20 +76,6 @@ const ( DisplayServiceListManageableUserRepositoryRolesProcedure = "/buf.alpha.registry.v1alpha1.DisplayService/ListManageableUserRepositoryRoles" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - displayServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_display_proto.Services().ByName("DisplayService") - displayServiceDisplayOrganizationElementsMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("DisplayOrganizationElements") - displayServiceDisplayRepositoryElementsMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("DisplayRepositoryElements") - displayServiceDisplayPluginElementsMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("DisplayPluginElements") - displayServiceDisplayUserElementsMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("DisplayUserElements") - displayServiceDisplayServerElementsMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("DisplayServerElements") - displayServiceDisplayOwnerEntitledElementsMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("DisplayOwnerEntitledElements") - displayServiceDisplayRepositoryEntitledElementsMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("DisplayRepositoryEntitledElements") - displayServiceListManageableRepositoryRolesMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("ListManageableRepositoryRoles") - displayServiceListManageableUserRepositoryRolesMethodDescriptor = displayServiceServiceDescriptor.Methods().ByName("ListManageableUserRepositoryRoles") -) - // DisplayServiceClient is a client for the buf.alpha.registry.v1alpha1.DisplayService service. type DisplayServiceClient interface { // DisplayOrganizationElements returns which organization elements should be displayed to the user. @@ -123,67 +109,68 @@ type DisplayServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewDisplayServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DisplayServiceClient { baseURL = strings.TrimRight(baseURL, "/") + displayServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_display_proto.Services().ByName("DisplayService").Methods() return &displayServiceClient{ displayOrganizationElements: connect.NewClient[v1alpha1.DisplayOrganizationElementsRequest, v1alpha1.DisplayOrganizationElementsResponse]( httpClient, baseURL+DisplayServiceDisplayOrganizationElementsProcedure, - connect.WithSchema(displayServiceDisplayOrganizationElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayOrganizationElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), displayRepositoryElements: connect.NewClient[v1alpha1.DisplayRepositoryElementsRequest, v1alpha1.DisplayRepositoryElementsResponse]( httpClient, baseURL+DisplayServiceDisplayRepositoryElementsProcedure, - connect.WithSchema(displayServiceDisplayRepositoryElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayRepositoryElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), displayPluginElements: connect.NewClient[v1alpha1.DisplayPluginElementsRequest, v1alpha1.DisplayPluginElementsResponse]( httpClient, baseURL+DisplayServiceDisplayPluginElementsProcedure, - connect.WithSchema(displayServiceDisplayPluginElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayPluginElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), displayUserElements: connect.NewClient[v1alpha1.DisplayUserElementsRequest, v1alpha1.DisplayUserElementsResponse]( httpClient, baseURL+DisplayServiceDisplayUserElementsProcedure, - connect.WithSchema(displayServiceDisplayUserElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayUserElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), displayServerElements: connect.NewClient[v1alpha1.DisplayServerElementsRequest, v1alpha1.DisplayServerElementsResponse]( httpClient, baseURL+DisplayServiceDisplayServerElementsProcedure, - connect.WithSchema(displayServiceDisplayServerElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayServerElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), displayOwnerEntitledElements: connect.NewClient[v1alpha1.DisplayOwnerEntitledElementsRequest, v1alpha1.DisplayOwnerEntitledElementsResponse]( httpClient, baseURL+DisplayServiceDisplayOwnerEntitledElementsProcedure, - connect.WithSchema(displayServiceDisplayOwnerEntitledElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayOwnerEntitledElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), displayRepositoryEntitledElements: connect.NewClient[v1alpha1.DisplayRepositoryEntitledElementsRequest, v1alpha1.DisplayRepositoryEntitledElementsResponse]( httpClient, baseURL+DisplayServiceDisplayRepositoryEntitledElementsProcedure, - connect.WithSchema(displayServiceDisplayRepositoryEntitledElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayRepositoryEntitledElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listManageableRepositoryRoles: connect.NewClient[v1alpha1.ListManageableRepositoryRolesRequest, v1alpha1.ListManageableRepositoryRolesResponse]( httpClient, baseURL+DisplayServiceListManageableRepositoryRolesProcedure, - connect.WithSchema(displayServiceListManageableRepositoryRolesMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("ListManageableRepositoryRoles")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listManageableUserRepositoryRoles: connect.NewClient[v1alpha1.ListManageableUserRepositoryRolesRequest, v1alpha1.ListManageableUserRepositoryRolesResponse]( httpClient, baseURL+DisplayServiceListManageableUserRepositoryRolesProcedure, - connect.WithSchema(displayServiceListManageableUserRepositoryRolesMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("ListManageableUserRepositoryRoles")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -285,66 +272,67 @@ type DisplayServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewDisplayServiceHandler(svc DisplayServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + displayServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_display_proto.Services().ByName("DisplayService").Methods() displayServiceDisplayOrganizationElementsHandler := connect.NewUnaryHandler( DisplayServiceDisplayOrganizationElementsProcedure, svc.DisplayOrganizationElements, - connect.WithSchema(displayServiceDisplayOrganizationElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayOrganizationElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceDisplayRepositoryElementsHandler := connect.NewUnaryHandler( DisplayServiceDisplayRepositoryElementsProcedure, svc.DisplayRepositoryElements, - connect.WithSchema(displayServiceDisplayRepositoryElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayRepositoryElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceDisplayPluginElementsHandler := connect.NewUnaryHandler( DisplayServiceDisplayPluginElementsProcedure, svc.DisplayPluginElements, - connect.WithSchema(displayServiceDisplayPluginElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayPluginElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceDisplayUserElementsHandler := connect.NewUnaryHandler( DisplayServiceDisplayUserElementsProcedure, svc.DisplayUserElements, - connect.WithSchema(displayServiceDisplayUserElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayUserElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceDisplayServerElementsHandler := connect.NewUnaryHandler( DisplayServiceDisplayServerElementsProcedure, svc.DisplayServerElements, - connect.WithSchema(displayServiceDisplayServerElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayServerElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceDisplayOwnerEntitledElementsHandler := connect.NewUnaryHandler( DisplayServiceDisplayOwnerEntitledElementsProcedure, svc.DisplayOwnerEntitledElements, - connect.WithSchema(displayServiceDisplayOwnerEntitledElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayOwnerEntitledElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceDisplayRepositoryEntitledElementsHandler := connect.NewUnaryHandler( DisplayServiceDisplayRepositoryEntitledElementsProcedure, svc.DisplayRepositoryEntitledElements, - connect.WithSchema(displayServiceDisplayRepositoryEntitledElementsMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("DisplayRepositoryEntitledElements")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceListManageableRepositoryRolesHandler := connect.NewUnaryHandler( DisplayServiceListManageableRepositoryRolesProcedure, svc.ListManageableRepositoryRoles, - connect.WithSchema(displayServiceListManageableRepositoryRolesMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("ListManageableRepositoryRoles")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) displayServiceListManageableUserRepositoryRolesHandler := connect.NewUnaryHandler( DisplayServiceListManageableUserRepositoryRolesProcedure, svc.ListManageableUserRepositoryRoles, - connect.WithSchema(displayServiceListManageableUserRepositoryRolesMethodDescriptor), + connect.WithSchema(displayServiceMethods.ByName("ListManageableUserRepositoryRoles")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/doc.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/doc.connect.go index c1dbfd579f..435877d8e3 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/doc.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/doc.connect.go @@ -64,16 +64,6 @@ const ( DocServiceGetPackageDocumentationProcedure = "/buf.alpha.registry.v1alpha1.DocService/GetPackageDocumentation" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - docServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_doc_proto.Services().ByName("DocService") - docServiceGetSourceDirectoryInfoMethodDescriptor = docServiceServiceDescriptor.Methods().ByName("GetSourceDirectoryInfo") - docServiceGetSourceFileMethodDescriptor = docServiceServiceDescriptor.Methods().ByName("GetSourceFile") - docServiceGetModulePackagesMethodDescriptor = docServiceServiceDescriptor.Methods().ByName("GetModulePackages") - docServiceGetModuleDocumentationMethodDescriptor = docServiceServiceDescriptor.Methods().ByName("GetModuleDocumentation") - docServiceGetPackageDocumentationMethodDescriptor = docServiceServiceDescriptor.Methods().ByName("GetPackageDocumentation") -) - // DocServiceClient is a client for the buf.alpha.registry.v1alpha1.DocService service. type DocServiceClient interface { // GetSourceDirectoryInfo retrieves the directory and file structure for the @@ -105,39 +95,40 @@ type DocServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewDocServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DocServiceClient { baseURL = strings.TrimRight(baseURL, "/") + docServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_doc_proto.Services().ByName("DocService").Methods() return &docServiceClient{ getSourceDirectoryInfo: connect.NewClient[v1alpha1.GetSourceDirectoryInfoRequest, v1alpha1.GetSourceDirectoryInfoResponse]( httpClient, baseURL+DocServiceGetSourceDirectoryInfoProcedure, - connect.WithSchema(docServiceGetSourceDirectoryInfoMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetSourceDirectoryInfo")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getSourceFile: connect.NewClient[v1alpha1.GetSourceFileRequest, v1alpha1.GetSourceFileResponse]( httpClient, baseURL+DocServiceGetSourceFileProcedure, - connect.WithSchema(docServiceGetSourceFileMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetSourceFile")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getModulePackages: connect.NewClient[v1alpha1.GetModulePackagesRequest, v1alpha1.GetModulePackagesResponse]( httpClient, baseURL+DocServiceGetModulePackagesProcedure, - connect.WithSchema(docServiceGetModulePackagesMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetModulePackages")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getModuleDocumentation: connect.NewClient[v1alpha1.GetModuleDocumentationRequest, v1alpha1.GetModuleDocumentationResponse]( httpClient, baseURL+DocServiceGetModuleDocumentationProcedure, - connect.WithSchema(docServiceGetModuleDocumentationMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetModuleDocumentation")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getPackageDocumentation: connect.NewClient[v1alpha1.GetPackageDocumentationRequest, v1alpha1.GetPackageDocumentationResponse]( httpClient, baseURL+DocServiceGetPackageDocumentationProcedure, - connect.WithSchema(docServiceGetPackageDocumentationMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetPackageDocumentation")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -206,38 +197,39 @@ type DocServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewDocServiceHandler(svc DocServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + docServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_doc_proto.Services().ByName("DocService").Methods() docServiceGetSourceDirectoryInfoHandler := connect.NewUnaryHandler( DocServiceGetSourceDirectoryInfoProcedure, svc.GetSourceDirectoryInfo, - connect.WithSchema(docServiceGetSourceDirectoryInfoMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetSourceDirectoryInfo")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) docServiceGetSourceFileHandler := connect.NewUnaryHandler( DocServiceGetSourceFileProcedure, svc.GetSourceFile, - connect.WithSchema(docServiceGetSourceFileMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetSourceFile")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) docServiceGetModulePackagesHandler := connect.NewUnaryHandler( DocServiceGetModulePackagesProcedure, svc.GetModulePackages, - connect.WithSchema(docServiceGetModulePackagesMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetModulePackages")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) docServiceGetModuleDocumentationHandler := connect.NewUnaryHandler( DocServiceGetModuleDocumentationProcedure, svc.GetModuleDocumentation, - connect.WithSchema(docServiceGetModuleDocumentationMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetModuleDocumentation")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) docServiceGetPackageDocumentationHandler := connect.NewUnaryHandler( DocServiceGetPackageDocumentationProcedure, svc.GetPackageDocumentation, - connect.WithSchema(docServiceGetPackageDocumentationMethodDescriptor), + connect.WithSchema(docServiceMethods.ByName("GetPackageDocumentation")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/download.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/download.connect.go index 85ba741e56..576f38c682 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/download.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/download.connect.go @@ -55,13 +55,6 @@ const ( DownloadServiceDownloadManifestAndBlobsProcedure = "/buf.alpha.registry.v1alpha1.DownloadService/DownloadManifestAndBlobs" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - downloadServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_download_proto.Services().ByName("DownloadService") - downloadServiceDownloadMethodDescriptor = downloadServiceServiceDescriptor.Methods().ByName("Download") - downloadServiceDownloadManifestAndBlobsMethodDescriptor = downloadServiceServiceDescriptor.Methods().ByName("DownloadManifestAndBlobs") -) - // DownloadServiceClient is a client for the buf.alpha.registry.v1alpha1.DownloadService service. type DownloadServiceClient interface { // Download downloads a BSR module. @@ -80,18 +73,19 @@ type DownloadServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewDownloadServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DownloadServiceClient { baseURL = strings.TrimRight(baseURL, "/") + downloadServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_download_proto.Services().ByName("DownloadService").Methods() return &downloadServiceClient{ download: connect.NewClient[v1alpha1.DownloadRequest, v1alpha1.DownloadResponse]( httpClient, baseURL+DownloadServiceDownloadProcedure, - connect.WithSchema(downloadServiceDownloadMethodDescriptor), + connect.WithSchema(downloadServiceMethods.ByName("Download")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), downloadManifestAndBlobs: connect.NewClient[v1alpha1.DownloadManifestAndBlobsRequest, v1alpha1.DownloadManifestAndBlobsResponse]( httpClient, baseURL+DownloadServiceDownloadManifestAndBlobsProcedure, - connect.WithSchema(downloadServiceDownloadManifestAndBlobsMethodDescriptor), + connect.WithSchema(downloadServiceMethods.ByName("DownloadManifestAndBlobs")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -131,17 +125,18 @@ type DownloadServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewDownloadServiceHandler(svc DownloadServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + downloadServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_download_proto.Services().ByName("DownloadService").Methods() downloadServiceDownloadHandler := connect.NewUnaryHandler( DownloadServiceDownloadProcedure, svc.Download, - connect.WithSchema(downloadServiceDownloadMethodDescriptor), + connect.WithSchema(downloadServiceMethods.ByName("Download")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) downloadServiceDownloadManifestAndBlobsHandler := connect.NewUnaryHandler( DownloadServiceDownloadManifestAndBlobsProcedure, svc.DownloadManifestAndBlobs, - connect.WithSchema(downloadServiceDownloadManifestAndBlobsMethodDescriptor), + connect.WithSchema(downloadServiceMethods.ByName("DownloadManifestAndBlobs")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/github.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/github.connect.go index 31e05ce932..7900ad7a16 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/github.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/github.connect.go @@ -52,12 +52,6 @@ const ( GithubServiceGetGithubAppConfigProcedure = "/buf.alpha.registry.v1alpha1.GithubService/GetGithubAppConfig" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - githubServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_github_proto.Services().ByName("GithubService") - githubServiceGetGithubAppConfigMethodDescriptor = githubServiceServiceDescriptor.Methods().ByName("GetGithubAppConfig") -) - // GithubServiceClient is a client for the buf.alpha.registry.v1alpha1.GithubService service. type GithubServiceClient interface { // GetGithubAppConfig returns a Github Application Configuration. @@ -73,11 +67,12 @@ type GithubServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewGithubServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GithubServiceClient { baseURL = strings.TrimRight(baseURL, "/") + githubServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_github_proto.Services().ByName("GithubService").Methods() return &githubServiceClient{ getGithubAppConfig: connect.NewClient[v1alpha1.GetGithubAppConfigRequest, v1alpha1.GetGithubAppConfigResponse]( httpClient, baseURL+GithubServiceGetGithubAppConfigProcedure, - connect.WithSchema(githubServiceGetGithubAppConfigMethodDescriptor), + connect.WithSchema(githubServiceMethods.ByName("GetGithubAppConfig")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -107,10 +102,11 @@ type GithubServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewGithubServiceHandler(svc GithubServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + githubServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_github_proto.Services().ByName("GithubService").Methods() githubServiceGetGithubAppConfigHandler := connect.NewUnaryHandler( GithubServiceGetGithubAppConfigProcedure, svc.GetGithubAppConfig, - connect.WithSchema(githubServiceGetGithubAppConfigMethodDescriptor), + connect.WithSchema(githubServiceMethods.ByName("GetGithubAppConfig")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/image.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/image.connect.go index fb5633c738..981ec271dd 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/image.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/image.connect.go @@ -51,12 +51,6 @@ const ( ImageServiceGetImageProcedure = "/buf.alpha.registry.v1alpha1.ImageService/GetImage" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - imageServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_image_proto.Services().ByName("ImageService") - imageServiceGetImageMethodDescriptor = imageServiceServiceDescriptor.Methods().ByName("GetImage") -) - // ImageServiceClient is a client for the buf.alpha.registry.v1alpha1.ImageService service. type ImageServiceClient interface { // GetImage serves a compiled image for the local module. It automatically @@ -73,11 +67,12 @@ type ImageServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewImageServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ImageServiceClient { baseURL = strings.TrimRight(baseURL, "/") + imageServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_image_proto.Services().ByName("ImageService").Methods() return &imageServiceClient{ getImage: connect.NewClient[v1alpha1.GetImageRequest, v1alpha1.GetImageResponse]( httpClient, baseURL+ImageServiceGetImageProcedure, - connect.WithSchema(imageServiceGetImageMethodDescriptor), + connect.WithSchema(imageServiceMethods.ByName("GetImage")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -107,10 +102,11 @@ type ImageServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewImageServiceHandler(svc ImageServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + imageServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_image_proto.Services().ByName("ImageService").Methods() imageServiceGetImageHandler := connect.NewUnaryHandler( ImageServiceGetImageProcedure, svc.GetImage, - connect.WithSchema(imageServiceGetImageMethodDescriptor), + connect.WithSchema(imageServiceMethods.ByName("GetImage")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/jsonschema.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/jsonschema.connect.go index 81e04b09ce..234ef6a6df 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/jsonschema.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/jsonschema.connect.go @@ -52,12 +52,6 @@ const ( JSONSchemaServiceGetJSONSchemaProcedure = "/buf.alpha.registry.v1alpha1.JSONSchemaService/GetJSONSchema" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - jSONSchemaServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_jsonschema_proto.Services().ByName("JSONSchemaService") - jSONSchemaServiceGetJSONSchemaMethodDescriptor = jSONSchemaServiceServiceDescriptor.Methods().ByName("GetJSONSchema") -) - // JSONSchemaServiceClient is a client for the buf.alpha.registry.v1alpha1.JSONSchemaService // service. type JSONSchemaServiceClient interface { @@ -76,11 +70,12 @@ type JSONSchemaServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewJSONSchemaServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) JSONSchemaServiceClient { baseURL = strings.TrimRight(baseURL, "/") + jSONSchemaServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_jsonschema_proto.Services().ByName("JSONSchemaService").Methods() return &jSONSchemaServiceClient{ getJSONSchema: connect.NewClient[v1alpha1.GetJSONSchemaRequest, v1alpha1.GetJSONSchemaResponse]( httpClient, baseURL+JSONSchemaServiceGetJSONSchemaProcedure, - connect.WithSchema(jSONSchemaServiceGetJSONSchemaMethodDescriptor), + connect.WithSchema(jSONSchemaServiceMethods.ByName("GetJSONSchema")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -111,10 +106,11 @@ type JSONSchemaServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewJSONSchemaServiceHandler(svc JSONSchemaServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + jSONSchemaServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_jsonschema_proto.Services().ByName("JSONSchemaService").Methods() jSONSchemaServiceGetJSONSchemaHandler := connect.NewUnaryHandler( JSONSchemaServiceGetJSONSchemaProcedure, svc.GetJSONSchema, - connect.WithSchema(jSONSchemaServiceGetJSONSchemaMethodDescriptor), + connect.WithSchema(jSONSchemaServiceMethods.ByName("GetJSONSchema")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/organization.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/organization.connect.go index 38927302c4..4d2f376233 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/organization.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/organization.connect.go @@ -97,27 +97,6 @@ const ( OrganizationServiceRemoveOrganizationGroupProcedure = "/buf.alpha.registry.v1alpha1.OrganizationService/RemoveOrganizationGroup" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - organizationServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_organization_proto.Services().ByName("OrganizationService") - organizationServiceGetOrganizationMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("GetOrganization") - organizationServiceGetOrganizationByNameMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("GetOrganizationByName") - organizationServiceListOrganizationsMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("ListOrganizations") - organizationServiceListUserOrganizationsMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("ListUserOrganizations") - organizationServiceGetUserOrganizationMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("GetUserOrganization") - organizationServiceCreateOrganizationMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("CreateOrganization") - organizationServiceDeleteOrganizationMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("DeleteOrganization") - organizationServiceDeleteOrganizationByNameMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("DeleteOrganizationByName") - organizationServiceAddOrganizationMemberMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("AddOrganizationMember") - organizationServiceUpdateOrganizationMemberMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("UpdateOrganizationMember") - organizationServiceRemoveOrganizationMemberMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("RemoveOrganizationMember") - organizationServiceSetOrganizationMemberMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("SetOrganizationMember") - organizationServiceGetOrganizationSettingsMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("GetOrganizationSettings") - organizationServiceUpdateOrganizationSettingsMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("UpdateOrganizationSettings") - organizationServiceAddOrganizationGroupMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("AddOrganizationGroup") - organizationServiceRemoveOrganizationGroupMethodDescriptor = organizationServiceServiceDescriptor.Methods().ByName("RemoveOrganizationGroup") -) - // OrganizationServiceClient is a client for the buf.alpha.registry.v1alpha1.OrganizationService // service. type OrganizationServiceClient interface { @@ -164,113 +143,114 @@ type OrganizationServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewOrganizationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OrganizationServiceClient { baseURL = strings.TrimRight(baseURL, "/") + organizationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_organization_proto.Services().ByName("OrganizationService").Methods() return &organizationServiceClient{ getOrganization: connect.NewClient[v1alpha1.GetOrganizationRequest, v1alpha1.GetOrganizationResponse]( httpClient, baseURL+OrganizationServiceGetOrganizationProcedure, - connect.WithSchema(organizationServiceGetOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetOrganization")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getOrganizationByName: connect.NewClient[v1alpha1.GetOrganizationByNameRequest, v1alpha1.GetOrganizationByNameResponse]( httpClient, baseURL+OrganizationServiceGetOrganizationByNameProcedure, - connect.WithSchema(organizationServiceGetOrganizationByNameMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetOrganizationByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listOrganizations: connect.NewClient[v1alpha1.ListOrganizationsRequest, v1alpha1.ListOrganizationsResponse]( httpClient, baseURL+OrganizationServiceListOrganizationsProcedure, - connect.WithSchema(organizationServiceListOrganizationsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("ListOrganizations")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listUserOrganizations: connect.NewClient[v1alpha1.ListUserOrganizationsRequest, v1alpha1.ListUserOrganizationsResponse]( httpClient, baseURL+OrganizationServiceListUserOrganizationsProcedure, - connect.WithSchema(organizationServiceListUserOrganizationsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("ListUserOrganizations")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getUserOrganization: connect.NewClient[v1alpha1.GetUserOrganizationRequest, v1alpha1.GetUserOrganizationResponse]( httpClient, baseURL+OrganizationServiceGetUserOrganizationProcedure, - connect.WithSchema(organizationServiceGetUserOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetUserOrganization")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), createOrganization: connect.NewClient[v1alpha1.CreateOrganizationRequest, v1alpha1.CreateOrganizationResponse]( httpClient, baseURL+OrganizationServiceCreateOrganizationProcedure, - connect.WithSchema(organizationServiceCreateOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("CreateOrganization")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), deleteOrganization: connect.NewClient[v1alpha1.DeleteOrganizationRequest, v1alpha1.DeleteOrganizationResponse]( httpClient, baseURL+OrganizationServiceDeleteOrganizationProcedure, - connect.WithSchema(organizationServiceDeleteOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("DeleteOrganization")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), deleteOrganizationByName: connect.NewClient[v1alpha1.DeleteOrganizationByNameRequest, v1alpha1.DeleteOrganizationByNameResponse]( httpClient, baseURL+OrganizationServiceDeleteOrganizationByNameProcedure, - connect.WithSchema(organizationServiceDeleteOrganizationByNameMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("DeleteOrganizationByName")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), addOrganizationMember: connect.NewClient[v1alpha1.AddOrganizationMemberRequest, v1alpha1.AddOrganizationMemberResponse]( httpClient, baseURL+OrganizationServiceAddOrganizationMemberProcedure, - connect.WithSchema(organizationServiceAddOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("AddOrganizationMember")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), updateOrganizationMember: connect.NewClient[v1alpha1.UpdateOrganizationMemberRequest, v1alpha1.UpdateOrganizationMemberResponse]( httpClient, baseURL+OrganizationServiceUpdateOrganizationMemberProcedure, - connect.WithSchema(organizationServiceUpdateOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("UpdateOrganizationMember")), connect.WithClientOptions(opts...), ), removeOrganizationMember: connect.NewClient[v1alpha1.RemoveOrganizationMemberRequest, v1alpha1.RemoveOrganizationMemberResponse]( httpClient, baseURL+OrganizationServiceRemoveOrganizationMemberProcedure, - connect.WithSchema(organizationServiceRemoveOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("RemoveOrganizationMember")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), setOrganizationMember: connect.NewClient[v1alpha1.SetOrganizationMemberRequest, v1alpha1.SetOrganizationMemberResponse]( httpClient, baseURL+OrganizationServiceSetOrganizationMemberProcedure, - connect.WithSchema(organizationServiceSetOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("SetOrganizationMember")), connect.WithClientOptions(opts...), ), getOrganizationSettings: connect.NewClient[v1alpha1.GetOrganizationSettingsRequest, v1alpha1.GetOrganizationSettingsResponse]( httpClient, baseURL+OrganizationServiceGetOrganizationSettingsProcedure, - connect.WithSchema(organizationServiceGetOrganizationSettingsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetOrganizationSettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), updateOrganizationSettings: connect.NewClient[v1alpha1.UpdateOrganizationSettingsRequest, v1alpha1.UpdateOrganizationSettingsResponse]( httpClient, baseURL+OrganizationServiceUpdateOrganizationSettingsProcedure, - connect.WithSchema(organizationServiceUpdateOrganizationSettingsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("UpdateOrganizationSettings")), connect.WithClientOptions(opts...), ), addOrganizationGroup: connect.NewClient[v1alpha1.AddOrganizationGroupRequest, v1alpha1.AddOrganizationGroupResponse]( httpClient, baseURL+OrganizationServiceAddOrganizationGroupProcedure, - connect.WithSchema(organizationServiceAddOrganizationGroupMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("AddOrganizationGroup")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), removeOrganizationGroup: connect.NewClient[v1alpha1.RemoveOrganizationGroupRequest, v1alpha1.RemoveOrganizationGroupResponse]( httpClient, baseURL+OrganizationServiceRemoveOrganizationGroupProcedure, - connect.WithSchema(organizationServiceRemoveOrganizationGroupMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("RemoveOrganizationGroup")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), @@ -429,112 +409,113 @@ type OrganizationServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewOrganizationServiceHandler(svc OrganizationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + organizationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_organization_proto.Services().ByName("OrganizationService").Methods() organizationServiceGetOrganizationHandler := connect.NewUnaryHandler( OrganizationServiceGetOrganizationProcedure, svc.GetOrganization, - connect.WithSchema(organizationServiceGetOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetOrganization")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) organizationServiceGetOrganizationByNameHandler := connect.NewUnaryHandler( OrganizationServiceGetOrganizationByNameProcedure, svc.GetOrganizationByName, - connect.WithSchema(organizationServiceGetOrganizationByNameMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetOrganizationByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) organizationServiceListOrganizationsHandler := connect.NewUnaryHandler( OrganizationServiceListOrganizationsProcedure, svc.ListOrganizations, - connect.WithSchema(organizationServiceListOrganizationsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("ListOrganizations")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) organizationServiceListUserOrganizationsHandler := connect.NewUnaryHandler( OrganizationServiceListUserOrganizationsProcedure, svc.ListUserOrganizations, - connect.WithSchema(organizationServiceListUserOrganizationsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("ListUserOrganizations")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) organizationServiceGetUserOrganizationHandler := connect.NewUnaryHandler( OrganizationServiceGetUserOrganizationProcedure, svc.GetUserOrganization, - connect.WithSchema(organizationServiceGetUserOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetUserOrganization")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) organizationServiceCreateOrganizationHandler := connect.NewUnaryHandler( OrganizationServiceCreateOrganizationProcedure, svc.CreateOrganization, - connect.WithSchema(organizationServiceCreateOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("CreateOrganization")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) organizationServiceDeleteOrganizationHandler := connect.NewUnaryHandler( OrganizationServiceDeleteOrganizationProcedure, svc.DeleteOrganization, - connect.WithSchema(organizationServiceDeleteOrganizationMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("DeleteOrganization")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) organizationServiceDeleteOrganizationByNameHandler := connect.NewUnaryHandler( OrganizationServiceDeleteOrganizationByNameProcedure, svc.DeleteOrganizationByName, - connect.WithSchema(organizationServiceDeleteOrganizationByNameMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("DeleteOrganizationByName")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) organizationServiceAddOrganizationMemberHandler := connect.NewUnaryHandler( OrganizationServiceAddOrganizationMemberProcedure, svc.AddOrganizationMember, - connect.WithSchema(organizationServiceAddOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("AddOrganizationMember")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) organizationServiceUpdateOrganizationMemberHandler := connect.NewUnaryHandler( OrganizationServiceUpdateOrganizationMemberProcedure, svc.UpdateOrganizationMember, - connect.WithSchema(organizationServiceUpdateOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("UpdateOrganizationMember")), connect.WithHandlerOptions(opts...), ) organizationServiceRemoveOrganizationMemberHandler := connect.NewUnaryHandler( OrganizationServiceRemoveOrganizationMemberProcedure, svc.RemoveOrganizationMember, - connect.WithSchema(organizationServiceRemoveOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("RemoveOrganizationMember")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) organizationServiceSetOrganizationMemberHandler := connect.NewUnaryHandler( OrganizationServiceSetOrganizationMemberProcedure, svc.SetOrganizationMember, - connect.WithSchema(organizationServiceSetOrganizationMemberMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("SetOrganizationMember")), connect.WithHandlerOptions(opts...), ) organizationServiceGetOrganizationSettingsHandler := connect.NewUnaryHandler( OrganizationServiceGetOrganizationSettingsProcedure, svc.GetOrganizationSettings, - connect.WithSchema(organizationServiceGetOrganizationSettingsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("GetOrganizationSettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) organizationServiceUpdateOrganizationSettingsHandler := connect.NewUnaryHandler( OrganizationServiceUpdateOrganizationSettingsProcedure, svc.UpdateOrganizationSettings, - connect.WithSchema(organizationServiceUpdateOrganizationSettingsMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("UpdateOrganizationSettings")), connect.WithHandlerOptions(opts...), ) organizationServiceAddOrganizationGroupHandler := connect.NewUnaryHandler( OrganizationServiceAddOrganizationGroupProcedure, svc.AddOrganizationGroup, - connect.WithSchema(organizationServiceAddOrganizationGroupMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("AddOrganizationGroup")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) organizationServiceRemoveOrganizationGroupHandler := connect.NewUnaryHandler( OrganizationServiceRemoveOrganizationGroupProcedure, svc.RemoveOrganizationGroup, - connect.WithSchema(organizationServiceRemoveOrganizationGroupMethodDescriptor), + connect.WithSchema(organizationServiceMethods.ByName("RemoveOrganizationGroup")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/owner.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/owner.connect.go index 1386efb583..e047952927 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/owner.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/owner.connect.go @@ -52,12 +52,6 @@ const ( OwnerServiceGetOwnerByNameProcedure = "/buf.alpha.registry.v1alpha1.OwnerService/GetOwnerByName" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - ownerServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_owner_proto.Services().ByName("OwnerService") - ownerServiceGetOwnerByNameMethodDescriptor = ownerServiceServiceDescriptor.Methods().ByName("GetOwnerByName") -) - // OwnerServiceClient is a client for the buf.alpha.registry.v1alpha1.OwnerService service. type OwnerServiceClient interface { // GetOwnerByName takes an owner name and returns the owner as @@ -74,11 +68,12 @@ type OwnerServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewOwnerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OwnerServiceClient { baseURL = strings.TrimRight(baseURL, "/") + ownerServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_owner_proto.Services().ByName("OwnerService").Methods() return &ownerServiceClient{ getOwnerByName: connect.NewClient[v1alpha1.GetOwnerByNameRequest, v1alpha1.GetOwnerByNameResponse]( httpClient, baseURL+OwnerServiceGetOwnerByNameProcedure, - connect.WithSchema(ownerServiceGetOwnerByNameMethodDescriptor), + connect.WithSchema(ownerServiceMethods.ByName("GetOwnerByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -108,10 +103,11 @@ type OwnerServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewOwnerServiceHandler(svc OwnerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + ownerServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_owner_proto.Services().ByName("OwnerService").Methods() ownerServiceGetOwnerByNameHandler := connect.NewUnaryHandler( OwnerServiceGetOwnerByNameProcedure, svc.GetOwnerByName, - connect.WithSchema(ownerServiceGetOwnerByNameMethodDescriptor), + connect.WithSchema(ownerServiceMethods.ByName("GetOwnerByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/plugin_curation.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/plugin_curation.connect.go index 71ed30c408..1001cdb1c5 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/plugin_curation.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/plugin_curation.connect.go @@ -66,17 +66,6 @@ const ( CodeGenerationServiceGenerateCodeProcedure = "/buf.alpha.registry.v1alpha1.CodeGenerationService/GenerateCode" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - pluginCurationServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_plugin_curation_proto.Services().ByName("PluginCurationService") - pluginCurationServiceListCuratedPluginsMethodDescriptor = pluginCurationServiceServiceDescriptor.Methods().ByName("ListCuratedPlugins") - pluginCurationServiceCreateCuratedPluginMethodDescriptor = pluginCurationServiceServiceDescriptor.Methods().ByName("CreateCuratedPlugin") - pluginCurationServiceGetLatestCuratedPluginMethodDescriptor = pluginCurationServiceServiceDescriptor.Methods().ByName("GetLatestCuratedPlugin") - pluginCurationServiceDeleteCuratedPluginMethodDescriptor = pluginCurationServiceServiceDescriptor.Methods().ByName("DeleteCuratedPlugin") - codeGenerationServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_plugin_curation_proto.Services().ByName("CodeGenerationService") - codeGenerationServiceGenerateCodeMethodDescriptor = codeGenerationServiceServiceDescriptor.Methods().ByName("GenerateCode") -) - // PluginCurationServiceClient is a client for the buf.alpha.registry.v1alpha1.PluginCurationService // service. type PluginCurationServiceClient interface { @@ -100,32 +89,33 @@ type PluginCurationServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewPluginCurationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PluginCurationServiceClient { baseURL = strings.TrimRight(baseURL, "/") + pluginCurationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_plugin_curation_proto.Services().ByName("PluginCurationService").Methods() return &pluginCurationServiceClient{ listCuratedPlugins: connect.NewClient[v1alpha1.ListCuratedPluginsRequest, v1alpha1.ListCuratedPluginsResponse]( httpClient, baseURL+PluginCurationServiceListCuratedPluginsProcedure, - connect.WithSchema(pluginCurationServiceListCuratedPluginsMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("ListCuratedPlugins")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), createCuratedPlugin: connect.NewClient[v1alpha1.CreateCuratedPluginRequest, v1alpha1.CreateCuratedPluginResponse]( httpClient, baseURL+PluginCurationServiceCreateCuratedPluginProcedure, - connect.WithSchema(pluginCurationServiceCreateCuratedPluginMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("CreateCuratedPlugin")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), getLatestCuratedPlugin: connect.NewClient[v1alpha1.GetLatestCuratedPluginRequest, v1alpha1.GetLatestCuratedPluginResponse]( httpClient, baseURL+PluginCurationServiceGetLatestCuratedPluginProcedure, - connect.WithSchema(pluginCurationServiceGetLatestCuratedPluginMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("GetLatestCuratedPlugin")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), deleteCuratedPlugin: connect.NewClient[v1alpha1.DeleteCuratedPluginRequest, v1alpha1.DeleteCuratedPluginResponse]( httpClient, baseURL+PluginCurationServiceDeleteCuratedPluginProcedure, - connect.WithSchema(pluginCurationServiceDeleteCuratedPluginMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("DeleteCuratedPlugin")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), @@ -180,31 +170,32 @@ type PluginCurationServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewPluginCurationServiceHandler(svc PluginCurationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + pluginCurationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_plugin_curation_proto.Services().ByName("PluginCurationService").Methods() pluginCurationServiceListCuratedPluginsHandler := connect.NewUnaryHandler( PluginCurationServiceListCuratedPluginsProcedure, svc.ListCuratedPlugins, - connect.WithSchema(pluginCurationServiceListCuratedPluginsMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("ListCuratedPlugins")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) pluginCurationServiceCreateCuratedPluginHandler := connect.NewUnaryHandler( PluginCurationServiceCreateCuratedPluginProcedure, svc.CreateCuratedPlugin, - connect.WithSchema(pluginCurationServiceCreateCuratedPluginMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("CreateCuratedPlugin")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) pluginCurationServiceGetLatestCuratedPluginHandler := connect.NewUnaryHandler( PluginCurationServiceGetLatestCuratedPluginProcedure, svc.GetLatestCuratedPlugin, - connect.WithSchema(pluginCurationServiceGetLatestCuratedPluginMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("GetLatestCuratedPlugin")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) pluginCurationServiceDeleteCuratedPluginHandler := connect.NewUnaryHandler( PluginCurationServiceDeleteCuratedPluginProcedure, svc.DeleteCuratedPlugin, - connect.WithSchema(pluginCurationServiceDeleteCuratedPluginMethodDescriptor), + connect.WithSchema(pluginCurationServiceMethods.ByName("DeleteCuratedPlugin")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) @@ -260,11 +251,12 @@ type CodeGenerationServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewCodeGenerationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CodeGenerationServiceClient { baseURL = strings.TrimRight(baseURL, "/") + codeGenerationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_plugin_curation_proto.Services().ByName("CodeGenerationService").Methods() return &codeGenerationServiceClient{ generateCode: connect.NewClient[v1alpha1.GenerateCodeRequest, v1alpha1.GenerateCodeResponse]( httpClient, baseURL+CodeGenerationServiceGenerateCodeProcedure, - connect.WithSchema(codeGenerationServiceGenerateCodeMethodDescriptor), + connect.WithSchema(codeGenerationServiceMethods.ByName("GenerateCode")), connect.WithClientOptions(opts...), ), } @@ -293,10 +285,11 @@ type CodeGenerationServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewCodeGenerationServiceHandler(svc CodeGenerationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + codeGenerationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_plugin_curation_proto.Services().ByName("CodeGenerationService").Methods() codeGenerationServiceGenerateCodeHandler := connect.NewUnaryHandler( CodeGenerationServiceGenerateCodeProcedure, svc.GenerateCode, - connect.WithSchema(codeGenerationServiceGenerateCodeMethodDescriptor), + connect.WithSchema(codeGenerationServiceMethods.ByName("GenerateCode")), connect.WithHandlerOptions(opts...), ) return "/buf.alpha.registry.v1alpha1.CodeGenerationService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/push.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/push.connect.go index d3ec9072c2..59721f10b7 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/push.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/push.connect.go @@ -54,13 +54,6 @@ const ( PushServicePushManifestAndBlobsProcedure = "/buf.alpha.registry.v1alpha1.PushService/PushManifestAndBlobs" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - pushServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_push_proto.Services().ByName("PushService") - pushServicePushMethodDescriptor = pushServiceServiceDescriptor.Methods().ByName("Push") - pushServicePushManifestAndBlobsMethodDescriptor = pushServiceServiceDescriptor.Methods().ByName("PushManifestAndBlobs") -) - // PushServiceClient is a client for the buf.alpha.registry.v1alpha1.PushService service. type PushServiceClient interface { // Push pushes. @@ -79,18 +72,19 @@ type PushServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewPushServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PushServiceClient { baseURL = strings.TrimRight(baseURL, "/") + pushServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_push_proto.Services().ByName("PushService").Methods() return &pushServiceClient{ push: connect.NewClient[v1alpha1.PushRequest, v1alpha1.PushResponse]( httpClient, baseURL+PushServicePushProcedure, - connect.WithSchema(pushServicePushMethodDescriptor), + connect.WithSchema(pushServiceMethods.ByName("Push")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), pushManifestAndBlobs: connect.NewClient[v1alpha1.PushManifestAndBlobsRequest, v1alpha1.PushManifestAndBlobsResponse]( httpClient, baseURL+PushServicePushManifestAndBlobsProcedure, - connect.WithSchema(pushServicePushManifestAndBlobsMethodDescriptor), + connect.WithSchema(pushServiceMethods.ByName("PushManifestAndBlobs")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), @@ -128,17 +122,18 @@ type PushServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewPushServiceHandler(svc PushServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + pushServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_push_proto.Services().ByName("PushService").Methods() pushServicePushHandler := connect.NewUnaryHandler( PushServicePushProcedure, svc.Push, - connect.WithSchema(pushServicePushMethodDescriptor), + connect.WithSchema(pushServiceMethods.ByName("Push")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) pushServicePushManifestAndBlobsHandler := connect.NewUnaryHandler( PushServicePushManifestAndBlobsProcedure, svc.PushManifestAndBlobs, - connect.WithSchema(pushServicePushManifestAndBlobsMethodDescriptor), + connect.WithSchema(pushServiceMethods.ByName("PushManifestAndBlobs")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go index 034dee2046..c994cc3cc1 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go @@ -58,14 +58,6 @@ const ( RecommendationServiceSetRecommendedResourcesProcedure = "/buf.alpha.registry.v1alpha1.RecommendationService/SetRecommendedResources" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - recommendationServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_recommendation_proto.Services().ByName("RecommendationService") - recommendationServiceRecommendedRepositoriesMethodDescriptor = recommendationServiceServiceDescriptor.Methods().ByName("RecommendedRepositories") - recommendationServiceListRecommendedResourcesMethodDescriptor = recommendationServiceServiceDescriptor.Methods().ByName("ListRecommendedResources") - recommendationServiceSetRecommendedResourcesMethodDescriptor = recommendationServiceServiceDescriptor.Methods().ByName("SetRecommendedResources") -) - // RecommendationServiceClient is a client for the buf.alpha.registry.v1alpha1.RecommendationService // service. type RecommendationServiceClient interface { @@ -87,25 +79,26 @@ type RecommendationServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewRecommendationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RecommendationServiceClient { baseURL = strings.TrimRight(baseURL, "/") + recommendationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_recommendation_proto.Services().ByName("RecommendationService").Methods() return &recommendationServiceClient{ recommendedRepositories: connect.NewClient[v1alpha1.RecommendedRepositoriesRequest, v1alpha1.RecommendedRepositoriesResponse]( httpClient, baseURL+RecommendationServiceRecommendedRepositoriesProcedure, - connect.WithSchema(recommendationServiceRecommendedRepositoriesMethodDescriptor), + connect.WithSchema(recommendationServiceMethods.ByName("RecommendedRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRecommendedResources: connect.NewClient[v1alpha1.ListRecommendedResourcesRequest, v1alpha1.ListRecommendedResourcesResponse]( httpClient, baseURL+RecommendationServiceListRecommendedResourcesProcedure, - connect.WithSchema(recommendationServiceListRecommendedResourcesMethodDescriptor), + connect.WithSchema(recommendationServiceMethods.ByName("ListRecommendedResources")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), setRecommendedResources: connect.NewClient[v1alpha1.SetRecommendedResourcesRequest, v1alpha1.SetRecommendedResourcesResponse]( httpClient, baseURL+RecommendationServiceSetRecommendedResourcesProcedure, - connect.WithSchema(recommendationServiceSetRecommendedResourcesMethodDescriptor), + connect.WithSchema(recommendationServiceMethods.ByName("SetRecommendedResources")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), @@ -154,24 +147,25 @@ type RecommendationServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewRecommendationServiceHandler(svc RecommendationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + recommendationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_recommendation_proto.Services().ByName("RecommendationService").Methods() recommendationServiceRecommendedRepositoriesHandler := connect.NewUnaryHandler( RecommendationServiceRecommendedRepositoriesProcedure, svc.RecommendedRepositories, - connect.WithSchema(recommendationServiceRecommendedRepositoriesMethodDescriptor), + connect.WithSchema(recommendationServiceMethods.ByName("RecommendedRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) recommendationServiceListRecommendedResourcesHandler := connect.NewUnaryHandler( RecommendationServiceListRecommendedResourcesProcedure, svc.ListRecommendedResources, - connect.WithSchema(recommendationServiceListRecommendedResourcesMethodDescriptor), + connect.WithSchema(recommendationServiceMethods.ByName("ListRecommendedResources")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) recommendationServiceSetRecommendedResourcesHandler := connect.NewUnaryHandler( RecommendationServiceSetRecommendedResourcesProcedure, svc.SetRecommendedResources, - connect.WithSchema(recommendationServiceSetRecommendedResourcesMethodDescriptor), + connect.WithSchema(recommendationServiceMethods.ByName("SetRecommendedResources")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/reference.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/reference.connect.go index 040f86cb42..e5432fab9a 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/reference.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/reference.connect.go @@ -52,12 +52,6 @@ const ( ReferenceServiceGetReferenceByNameProcedure = "/buf.alpha.registry.v1alpha1.ReferenceService/GetReferenceByName" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - referenceServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_reference_proto.Services().ByName("ReferenceService") - referenceServiceGetReferenceByNameMethodDescriptor = referenceServiceServiceDescriptor.Methods().ByName("GetReferenceByName") -) - // ReferenceServiceClient is a client for the buf.alpha.registry.v1alpha1.ReferenceService service. type ReferenceServiceClient interface { // GetReferenceByName takes a reference name and returns the @@ -75,11 +69,12 @@ type ReferenceServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewReferenceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ReferenceServiceClient { baseURL = strings.TrimRight(baseURL, "/") + referenceServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_reference_proto.Services().ByName("ReferenceService").Methods() return &referenceServiceClient{ getReferenceByName: connect.NewClient[v1alpha1.GetReferenceByNameRequest, v1alpha1.GetReferenceByNameResponse]( httpClient, baseURL+ReferenceServiceGetReferenceByNameProcedure, - connect.WithSchema(referenceServiceGetReferenceByNameMethodDescriptor), + connect.WithSchema(referenceServiceMethods.ByName("GetReferenceByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -110,10 +105,11 @@ type ReferenceServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewReferenceServiceHandler(svc ReferenceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + referenceServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_reference_proto.Services().ByName("ReferenceService").Methods() referenceServiceGetReferenceByNameHandler := connect.NewUnaryHandler( ReferenceServiceGetReferenceByNameProcedure, svc.GetReferenceByName, - connect.WithSchema(referenceServiceGetReferenceByNameMethodDescriptor), + connect.WithSchema(referenceServiceMethods.ByName("GetReferenceByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository.connect.go index 0277d70d18..bcefb47d32 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository.connect.go @@ -106,30 +106,6 @@ const ( RepositoryServiceGetRepositoryDependencyDOTStringProcedure = "/buf.alpha.registry.v1alpha1.RepositoryService/GetRepositoryDependencyDOTString" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - repositoryServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_repository_proto.Services().ByName("RepositoryService") - repositoryServiceGetRepositoryMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("GetRepository") - repositoryServiceGetRepositoryByFullNameMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("GetRepositoryByFullName") - repositoryServiceListRepositoriesMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("ListRepositories") - repositoryServiceListUserRepositoriesMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("ListUserRepositories") - repositoryServiceListRepositoriesUserCanAccessMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("ListRepositoriesUserCanAccess") - repositoryServiceListOrganizationRepositoriesMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("ListOrganizationRepositories") - repositoryServiceCreateRepositoryByFullNameMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("CreateRepositoryByFullName") - repositoryServiceDeleteRepositoryMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("DeleteRepository") - repositoryServiceDeleteRepositoryByFullNameMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("DeleteRepositoryByFullName") - repositoryServiceDeprecateRepositoryByNameMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("DeprecateRepositoryByName") - repositoryServiceUndeprecateRepositoryByNameMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("UndeprecateRepositoryByName") - repositoryServiceGetRepositoriesByFullNameMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("GetRepositoriesByFullName") - repositoryServiceSetRepositoryContributorMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("SetRepositoryContributor") - repositoryServiceListRepositoryContributorsMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("ListRepositoryContributors") - repositoryServiceGetRepositoryContributorMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("GetRepositoryContributor") - repositoryServiceGetRepositorySettingsMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("GetRepositorySettings") - repositoryServiceUpdateRepositorySettingsByNameMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("UpdateRepositorySettingsByName") - repositoryServiceGetRepositoriesMetadataMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("GetRepositoriesMetadata") - repositoryServiceGetRepositoryDependencyDOTStringMethodDescriptor = repositoryServiceServiceDescriptor.Methods().ByName("GetRepositoryDependencyDOTString") -) - // RepositoryServiceClient is a client for the buf.alpha.registry.v1alpha1.RepositoryService // service. type RepositoryServiceClient interface { @@ -188,133 +164,134 @@ type RepositoryServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewRepositoryServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RepositoryServiceClient { baseURL = strings.TrimRight(baseURL, "/") + repositoryServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_proto.Services().ByName("RepositoryService").Methods() return &repositoryServiceClient{ getRepository: connect.NewClient[v1alpha1.GetRepositoryRequest, v1alpha1.GetRepositoryResponse]( httpClient, baseURL+RepositoryServiceGetRepositoryProcedure, - connect.WithSchema(repositoryServiceGetRepositoryMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepository")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getRepositoryByFullName: connect.NewClient[v1alpha1.GetRepositoryByFullNameRequest, v1alpha1.GetRepositoryByFullNameResponse]( httpClient, baseURL+RepositoryServiceGetRepositoryByFullNameProcedure, - connect.WithSchema(repositoryServiceGetRepositoryByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoryByFullName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRepositories: connect.NewClient[v1alpha1.ListRepositoriesRequest, v1alpha1.ListRepositoriesResponse]( httpClient, baseURL+RepositoryServiceListRepositoriesProcedure, - connect.WithSchema(repositoryServiceListRepositoriesMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listUserRepositories: connect.NewClient[v1alpha1.ListUserRepositoriesRequest, v1alpha1.ListUserRepositoriesResponse]( httpClient, baseURL+RepositoryServiceListUserRepositoriesProcedure, - connect.WithSchema(repositoryServiceListUserRepositoriesMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListUserRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRepositoriesUserCanAccess: connect.NewClient[v1alpha1.ListRepositoriesUserCanAccessRequest, v1alpha1.ListRepositoriesUserCanAccessResponse]( httpClient, baseURL+RepositoryServiceListRepositoriesUserCanAccessProcedure, - connect.WithSchema(repositoryServiceListRepositoriesUserCanAccessMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListRepositoriesUserCanAccess")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listOrganizationRepositories: connect.NewClient[v1alpha1.ListOrganizationRepositoriesRequest, v1alpha1.ListOrganizationRepositoriesResponse]( httpClient, baseURL+RepositoryServiceListOrganizationRepositoriesProcedure, - connect.WithSchema(repositoryServiceListOrganizationRepositoriesMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListOrganizationRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), createRepositoryByFullName: connect.NewClient[v1alpha1.CreateRepositoryByFullNameRequest, v1alpha1.CreateRepositoryByFullNameResponse]( httpClient, baseURL+RepositoryServiceCreateRepositoryByFullNameProcedure, - connect.WithSchema(repositoryServiceCreateRepositoryByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("CreateRepositoryByFullName")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), deleteRepository: connect.NewClient[v1alpha1.DeleteRepositoryRequest, v1alpha1.DeleteRepositoryResponse]( httpClient, baseURL+RepositoryServiceDeleteRepositoryProcedure, - connect.WithSchema(repositoryServiceDeleteRepositoryMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("DeleteRepository")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), deleteRepositoryByFullName: connect.NewClient[v1alpha1.DeleteRepositoryByFullNameRequest, v1alpha1.DeleteRepositoryByFullNameResponse]( httpClient, baseURL+RepositoryServiceDeleteRepositoryByFullNameProcedure, - connect.WithSchema(repositoryServiceDeleteRepositoryByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("DeleteRepositoryByFullName")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), deprecateRepositoryByName: connect.NewClient[v1alpha1.DeprecateRepositoryByNameRequest, v1alpha1.DeprecateRepositoryByNameResponse]( httpClient, baseURL+RepositoryServiceDeprecateRepositoryByNameProcedure, - connect.WithSchema(repositoryServiceDeprecateRepositoryByNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("DeprecateRepositoryByName")), connect.WithClientOptions(opts...), ), undeprecateRepositoryByName: connect.NewClient[v1alpha1.UndeprecateRepositoryByNameRequest, v1alpha1.UndeprecateRepositoryByNameResponse]( httpClient, baseURL+RepositoryServiceUndeprecateRepositoryByNameProcedure, - connect.WithSchema(repositoryServiceUndeprecateRepositoryByNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("UndeprecateRepositoryByName")), connect.WithClientOptions(opts...), ), getRepositoriesByFullName: connect.NewClient[v1alpha1.GetRepositoriesByFullNameRequest, v1alpha1.GetRepositoriesByFullNameResponse]( httpClient, baseURL+RepositoryServiceGetRepositoriesByFullNameProcedure, - connect.WithSchema(repositoryServiceGetRepositoriesByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoriesByFullName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), setRepositoryContributor: connect.NewClient[v1alpha1.SetRepositoryContributorRequest, v1alpha1.SetRepositoryContributorResponse]( httpClient, baseURL+RepositoryServiceSetRepositoryContributorProcedure, - connect.WithSchema(repositoryServiceSetRepositoryContributorMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("SetRepositoryContributor")), connect.WithClientOptions(opts...), ), listRepositoryContributors: connect.NewClient[v1alpha1.ListRepositoryContributorsRequest, v1alpha1.ListRepositoryContributorsResponse]( httpClient, baseURL+RepositoryServiceListRepositoryContributorsProcedure, - connect.WithSchema(repositoryServiceListRepositoryContributorsMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListRepositoryContributors")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getRepositoryContributor: connect.NewClient[v1alpha1.GetRepositoryContributorRequest, v1alpha1.GetRepositoryContributorResponse]( httpClient, baseURL+RepositoryServiceGetRepositoryContributorProcedure, - connect.WithSchema(repositoryServiceGetRepositoryContributorMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoryContributor")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getRepositorySettings: connect.NewClient[v1alpha1.GetRepositorySettingsRequest, v1alpha1.GetRepositorySettingsResponse]( httpClient, baseURL+RepositoryServiceGetRepositorySettingsProcedure, - connect.WithSchema(repositoryServiceGetRepositorySettingsMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositorySettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), updateRepositorySettingsByName: connect.NewClient[v1alpha1.UpdateRepositorySettingsByNameRequest, v1alpha1.UpdateRepositorySettingsByNameResponse]( httpClient, baseURL+RepositoryServiceUpdateRepositorySettingsByNameProcedure, - connect.WithSchema(repositoryServiceUpdateRepositorySettingsByNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("UpdateRepositorySettingsByName")), connect.WithClientOptions(opts...), ), getRepositoriesMetadata: connect.NewClient[v1alpha1.GetRepositoriesMetadataRequest, v1alpha1.GetRepositoriesMetadataResponse]( httpClient, baseURL+RepositoryServiceGetRepositoriesMetadataProcedure, - connect.WithSchema(repositoryServiceGetRepositoriesMetadataMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoriesMetadata")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getRepositoryDependencyDOTString: connect.NewClient[v1alpha1.GetRepositoryDependencyDOTStringRequest, v1alpha1.GetRepositoryDependencyDOTStringResponse]( httpClient, baseURL+RepositoryServiceGetRepositoryDependencyDOTStringProcedure, - connect.WithSchema(repositoryServiceGetRepositoryDependencyDOTStringMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoryDependencyDOTString")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -507,132 +484,133 @@ type RepositoryServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewRepositoryServiceHandler(svc RepositoryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + repositoryServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_proto.Services().ByName("RepositoryService").Methods() repositoryServiceGetRepositoryHandler := connect.NewUnaryHandler( RepositoryServiceGetRepositoryProcedure, svc.GetRepository, - connect.WithSchema(repositoryServiceGetRepositoryMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepository")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceGetRepositoryByFullNameHandler := connect.NewUnaryHandler( RepositoryServiceGetRepositoryByFullNameProcedure, svc.GetRepositoryByFullName, - connect.WithSchema(repositoryServiceGetRepositoryByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoryByFullName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceListRepositoriesHandler := connect.NewUnaryHandler( RepositoryServiceListRepositoriesProcedure, svc.ListRepositories, - connect.WithSchema(repositoryServiceListRepositoriesMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceListUserRepositoriesHandler := connect.NewUnaryHandler( RepositoryServiceListUserRepositoriesProcedure, svc.ListUserRepositories, - connect.WithSchema(repositoryServiceListUserRepositoriesMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListUserRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceListRepositoriesUserCanAccessHandler := connect.NewUnaryHandler( RepositoryServiceListRepositoriesUserCanAccessProcedure, svc.ListRepositoriesUserCanAccess, - connect.WithSchema(repositoryServiceListRepositoriesUserCanAccessMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListRepositoriesUserCanAccess")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceListOrganizationRepositoriesHandler := connect.NewUnaryHandler( RepositoryServiceListOrganizationRepositoriesProcedure, svc.ListOrganizationRepositories, - connect.WithSchema(repositoryServiceListOrganizationRepositoriesMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListOrganizationRepositories")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceCreateRepositoryByFullNameHandler := connect.NewUnaryHandler( RepositoryServiceCreateRepositoryByFullNameProcedure, svc.CreateRepositoryByFullName, - connect.WithSchema(repositoryServiceCreateRepositoryByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("CreateRepositoryByFullName")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) repositoryServiceDeleteRepositoryHandler := connect.NewUnaryHandler( RepositoryServiceDeleteRepositoryProcedure, svc.DeleteRepository, - connect.WithSchema(repositoryServiceDeleteRepositoryMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("DeleteRepository")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) repositoryServiceDeleteRepositoryByFullNameHandler := connect.NewUnaryHandler( RepositoryServiceDeleteRepositoryByFullNameProcedure, svc.DeleteRepositoryByFullName, - connect.WithSchema(repositoryServiceDeleteRepositoryByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("DeleteRepositoryByFullName")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) repositoryServiceDeprecateRepositoryByNameHandler := connect.NewUnaryHandler( RepositoryServiceDeprecateRepositoryByNameProcedure, svc.DeprecateRepositoryByName, - connect.WithSchema(repositoryServiceDeprecateRepositoryByNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("DeprecateRepositoryByName")), connect.WithHandlerOptions(opts...), ) repositoryServiceUndeprecateRepositoryByNameHandler := connect.NewUnaryHandler( RepositoryServiceUndeprecateRepositoryByNameProcedure, svc.UndeprecateRepositoryByName, - connect.WithSchema(repositoryServiceUndeprecateRepositoryByNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("UndeprecateRepositoryByName")), connect.WithHandlerOptions(opts...), ) repositoryServiceGetRepositoriesByFullNameHandler := connect.NewUnaryHandler( RepositoryServiceGetRepositoriesByFullNameProcedure, svc.GetRepositoriesByFullName, - connect.WithSchema(repositoryServiceGetRepositoriesByFullNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoriesByFullName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceSetRepositoryContributorHandler := connect.NewUnaryHandler( RepositoryServiceSetRepositoryContributorProcedure, svc.SetRepositoryContributor, - connect.WithSchema(repositoryServiceSetRepositoryContributorMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("SetRepositoryContributor")), connect.WithHandlerOptions(opts...), ) repositoryServiceListRepositoryContributorsHandler := connect.NewUnaryHandler( RepositoryServiceListRepositoryContributorsProcedure, svc.ListRepositoryContributors, - connect.WithSchema(repositoryServiceListRepositoryContributorsMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("ListRepositoryContributors")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceGetRepositoryContributorHandler := connect.NewUnaryHandler( RepositoryServiceGetRepositoryContributorProcedure, svc.GetRepositoryContributor, - connect.WithSchema(repositoryServiceGetRepositoryContributorMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoryContributor")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceGetRepositorySettingsHandler := connect.NewUnaryHandler( RepositoryServiceGetRepositorySettingsProcedure, svc.GetRepositorySettings, - connect.WithSchema(repositoryServiceGetRepositorySettingsMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositorySettings")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceUpdateRepositorySettingsByNameHandler := connect.NewUnaryHandler( RepositoryServiceUpdateRepositorySettingsByNameProcedure, svc.UpdateRepositorySettingsByName, - connect.WithSchema(repositoryServiceUpdateRepositorySettingsByNameMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("UpdateRepositorySettingsByName")), connect.WithHandlerOptions(opts...), ) repositoryServiceGetRepositoriesMetadataHandler := connect.NewUnaryHandler( RepositoryServiceGetRepositoriesMetadataProcedure, svc.GetRepositoriesMetadata, - connect.WithSchema(repositoryServiceGetRepositoriesMetadataMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoriesMetadata")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryServiceGetRepositoryDependencyDOTStringHandler := connect.NewUnaryHandler( RepositoryServiceGetRepositoryDependencyDOTStringProcedure, svc.GetRepositoryDependencyDOTString, - connect.WithSchema(repositoryServiceGetRepositoryDependencyDOTStringMethodDescriptor), + connect.WithSchema(repositoryServiceMethods.ByName("GetRepositoryDependencyDOTString")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_branch.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_branch.connect.go index 96da8f452a..d7f63cc3a9 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_branch.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_branch.connect.go @@ -61,15 +61,6 @@ const ( RepositoryBranchServiceGetCurrentDefaultBranchProcedure = "/buf.alpha.registry.v1alpha1.RepositoryBranchService/GetCurrentDefaultBranch" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - repositoryBranchServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_repository_branch_proto.Services().ByName("RepositoryBranchService") - repositoryBranchServiceGetRepositoryBranchMethodDescriptor = repositoryBranchServiceServiceDescriptor.Methods().ByName("GetRepositoryBranch") - repositoryBranchServiceListRepositoryBranchesMethodDescriptor = repositoryBranchServiceServiceDescriptor.Methods().ByName("ListRepositoryBranches") - repositoryBranchServiceListRepositoryBranchesByReferenceMethodDescriptor = repositoryBranchServiceServiceDescriptor.Methods().ByName("ListRepositoryBranchesByReference") - repositoryBranchServiceGetCurrentDefaultBranchMethodDescriptor = repositoryBranchServiceServiceDescriptor.Methods().ByName("GetCurrentDefaultBranch") -) - // RepositoryBranchServiceClient is a client for the // buf.alpha.registry.v1alpha1.RepositoryBranchService service. type RepositoryBranchServiceClient interface { @@ -94,32 +85,33 @@ type RepositoryBranchServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewRepositoryBranchServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RepositoryBranchServiceClient { baseURL = strings.TrimRight(baseURL, "/") + repositoryBranchServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_branch_proto.Services().ByName("RepositoryBranchService").Methods() return &repositoryBranchServiceClient{ getRepositoryBranch: connect.NewClient[v1alpha1.GetRepositoryBranchRequest, v1alpha1.GetRepositoryBranchResponse]( httpClient, baseURL+RepositoryBranchServiceGetRepositoryBranchProcedure, - connect.WithSchema(repositoryBranchServiceGetRepositoryBranchMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("GetRepositoryBranch")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRepositoryBranches: connect.NewClient[v1alpha1.ListRepositoryBranchesRequest, v1alpha1.ListRepositoryBranchesResponse]( httpClient, baseURL+RepositoryBranchServiceListRepositoryBranchesProcedure, - connect.WithSchema(repositoryBranchServiceListRepositoryBranchesMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("ListRepositoryBranches")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRepositoryBranchesByReference: connect.NewClient[v1alpha1.ListRepositoryBranchesByReferenceRequest, v1alpha1.ListRepositoryBranchesByReferenceResponse]( httpClient, baseURL+RepositoryBranchServiceListRepositoryBranchesByReferenceProcedure, - connect.WithSchema(repositoryBranchServiceListRepositoryBranchesByReferenceMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("ListRepositoryBranchesByReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getCurrentDefaultBranch: connect.NewClient[v1alpha1.GetCurrentDefaultBranchRequest, v1alpha1.GetCurrentDefaultBranchResponse]( httpClient, baseURL+RepositoryBranchServiceGetCurrentDefaultBranchProcedure, - connect.WithSchema(repositoryBranchServiceGetCurrentDefaultBranchMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("GetCurrentDefaultBranch")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -178,31 +170,32 @@ type RepositoryBranchServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewRepositoryBranchServiceHandler(svc RepositoryBranchServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + repositoryBranchServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_branch_proto.Services().ByName("RepositoryBranchService").Methods() repositoryBranchServiceGetRepositoryBranchHandler := connect.NewUnaryHandler( RepositoryBranchServiceGetRepositoryBranchProcedure, svc.GetRepositoryBranch, - connect.WithSchema(repositoryBranchServiceGetRepositoryBranchMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("GetRepositoryBranch")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryBranchServiceListRepositoryBranchesHandler := connect.NewUnaryHandler( RepositoryBranchServiceListRepositoryBranchesProcedure, svc.ListRepositoryBranches, - connect.WithSchema(repositoryBranchServiceListRepositoryBranchesMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("ListRepositoryBranches")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryBranchServiceListRepositoryBranchesByReferenceHandler := connect.NewUnaryHandler( RepositoryBranchServiceListRepositoryBranchesByReferenceProcedure, svc.ListRepositoryBranchesByReference, - connect.WithSchema(repositoryBranchServiceListRepositoryBranchesByReferenceMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("ListRepositoryBranchesByReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryBranchServiceGetCurrentDefaultBranchHandler := connect.NewUnaryHandler( RepositoryBranchServiceGetCurrentDefaultBranchProcedure, svc.GetCurrentDefaultBranch, - connect.WithSchema(repositoryBranchServiceGetCurrentDefaultBranchMethodDescriptor), + connect.WithSchema(repositoryBranchServiceMethods.ByName("GetCurrentDefaultBranch")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_commit.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_commit.connect.go index 92f98d09c9..1bf2dc89f3 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_commit.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_commit.connect.go @@ -64,16 +64,6 @@ const ( RepositoryCommitServiceDeleteRepositoryDraftCommitProcedure = "/buf.alpha.registry.v1alpha1.RepositoryCommitService/DeleteRepositoryDraftCommit" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - repositoryCommitServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_repository_commit_proto.Services().ByName("RepositoryCommitService") - repositoryCommitServiceListRepositoryCommitsByBranchMethodDescriptor = repositoryCommitServiceServiceDescriptor.Methods().ByName("ListRepositoryCommitsByBranch") - repositoryCommitServiceListRepositoryCommitsByReferenceMethodDescriptor = repositoryCommitServiceServiceDescriptor.Methods().ByName("ListRepositoryCommitsByReference") - repositoryCommitServiceGetRepositoryCommitByReferenceMethodDescriptor = repositoryCommitServiceServiceDescriptor.Methods().ByName("GetRepositoryCommitByReference") - repositoryCommitServiceListRepositoryDraftCommitsMethodDescriptor = repositoryCommitServiceServiceDescriptor.Methods().ByName("ListRepositoryDraftCommits") - repositoryCommitServiceDeleteRepositoryDraftCommitMethodDescriptor = repositoryCommitServiceServiceDescriptor.Methods().ByName("DeleteRepositoryDraftCommit") -) - // RepositoryCommitServiceClient is a client for the // buf.alpha.registry.v1alpha1.RepositoryCommitService service. type RepositoryCommitServiceClient interface { @@ -104,39 +94,40 @@ type RepositoryCommitServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewRepositoryCommitServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RepositoryCommitServiceClient { baseURL = strings.TrimRight(baseURL, "/") + repositoryCommitServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_commit_proto.Services().ByName("RepositoryCommitService").Methods() return &repositoryCommitServiceClient{ listRepositoryCommitsByBranch: connect.NewClient[v1alpha1.ListRepositoryCommitsByBranchRequest, v1alpha1.ListRepositoryCommitsByBranchResponse]( httpClient, baseURL+RepositoryCommitServiceListRepositoryCommitsByBranchProcedure, - connect.WithSchema(repositoryCommitServiceListRepositoryCommitsByBranchMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("ListRepositoryCommitsByBranch")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRepositoryCommitsByReference: connect.NewClient[v1alpha1.ListRepositoryCommitsByReferenceRequest, v1alpha1.ListRepositoryCommitsByReferenceResponse]( httpClient, baseURL+RepositoryCommitServiceListRepositoryCommitsByReferenceProcedure, - connect.WithSchema(repositoryCommitServiceListRepositoryCommitsByReferenceMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("ListRepositoryCommitsByReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getRepositoryCommitByReference: connect.NewClient[v1alpha1.GetRepositoryCommitByReferenceRequest, v1alpha1.GetRepositoryCommitByReferenceResponse]( httpClient, baseURL+RepositoryCommitServiceGetRepositoryCommitByReferenceProcedure, - connect.WithSchema(repositoryCommitServiceGetRepositoryCommitByReferenceMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("GetRepositoryCommitByReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRepositoryDraftCommits: connect.NewClient[v1alpha1.ListRepositoryDraftCommitsRequest, v1alpha1.ListRepositoryDraftCommitsResponse]( httpClient, baseURL+RepositoryCommitServiceListRepositoryDraftCommitsProcedure, - connect.WithSchema(repositoryCommitServiceListRepositoryDraftCommitsMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("ListRepositoryDraftCommits")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), deleteRepositoryDraftCommit: connect.NewClient[v1alpha1.DeleteRepositoryDraftCommitRequest, v1alpha1.DeleteRepositoryDraftCommitResponse]( httpClient, baseURL+RepositoryCommitServiceDeleteRepositoryDraftCommitProcedure, - connect.WithSchema(repositoryCommitServiceDeleteRepositoryDraftCommitMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("DeleteRepositoryDraftCommit")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), @@ -210,38 +201,39 @@ type RepositoryCommitServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewRepositoryCommitServiceHandler(svc RepositoryCommitServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + repositoryCommitServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_commit_proto.Services().ByName("RepositoryCommitService").Methods() repositoryCommitServiceListRepositoryCommitsByBranchHandler := connect.NewUnaryHandler( RepositoryCommitServiceListRepositoryCommitsByBranchProcedure, svc.ListRepositoryCommitsByBranch, - connect.WithSchema(repositoryCommitServiceListRepositoryCommitsByBranchMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("ListRepositoryCommitsByBranch")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryCommitServiceListRepositoryCommitsByReferenceHandler := connect.NewUnaryHandler( RepositoryCommitServiceListRepositoryCommitsByReferenceProcedure, svc.ListRepositoryCommitsByReference, - connect.WithSchema(repositoryCommitServiceListRepositoryCommitsByReferenceMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("ListRepositoryCommitsByReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryCommitServiceGetRepositoryCommitByReferenceHandler := connect.NewUnaryHandler( RepositoryCommitServiceGetRepositoryCommitByReferenceProcedure, svc.GetRepositoryCommitByReference, - connect.WithSchema(repositoryCommitServiceGetRepositoryCommitByReferenceMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("GetRepositoryCommitByReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryCommitServiceListRepositoryDraftCommitsHandler := connect.NewUnaryHandler( RepositoryCommitServiceListRepositoryDraftCommitsProcedure, svc.ListRepositoryDraftCommits, - connect.WithSchema(repositoryCommitServiceListRepositoryDraftCommitsMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("ListRepositoryDraftCommits")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryCommitServiceDeleteRepositoryDraftCommitHandler := connect.NewUnaryHandler( RepositoryCommitServiceDeleteRepositoryDraftCommitProcedure, svc.DeleteRepositoryDraftCommit, - connect.WithSchema(repositoryCommitServiceDeleteRepositoryDraftCommitMethodDescriptor), + connect.WithSchema(repositoryCommitServiceMethods.ByName("DeleteRepositoryDraftCommit")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_tag.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_tag.connect.go index 4dd51cb1ef..9c5dc7eb15 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_tag.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/repository_tag.connect.go @@ -64,16 +64,6 @@ const ( RepositoryTagServiceListRepositoryTagsForReferenceProcedure = "/buf.alpha.registry.v1alpha1.RepositoryTagService/ListRepositoryTagsForReference" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - repositoryTagServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_repository_tag_proto.Services().ByName("RepositoryTagService") - repositoryTagServiceGetRepositoryTagMethodDescriptor = repositoryTagServiceServiceDescriptor.Methods().ByName("GetRepositoryTag") - repositoryTagServiceCreateRepositoryTagMethodDescriptor = repositoryTagServiceServiceDescriptor.Methods().ByName("CreateRepositoryTag") - repositoryTagServiceUpdateRepositoryTagMethodDescriptor = repositoryTagServiceServiceDescriptor.Methods().ByName("UpdateRepositoryTag") - repositoryTagServiceListRepositoryTagsMethodDescriptor = repositoryTagServiceServiceDescriptor.Methods().ByName("ListRepositoryTags") - repositoryTagServiceListRepositoryTagsForReferenceMethodDescriptor = repositoryTagServiceServiceDescriptor.Methods().ByName("ListRepositoryTagsForReference") -) - // RepositoryTagServiceClient is a client for the buf.alpha.registry.v1alpha1.RepositoryTagService // service. type RepositoryTagServiceClient interface { @@ -100,39 +90,40 @@ type RepositoryTagServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewRepositoryTagServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RepositoryTagServiceClient { baseURL = strings.TrimRight(baseURL, "/") + repositoryTagServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_tag_proto.Services().ByName("RepositoryTagService").Methods() return &repositoryTagServiceClient{ getRepositoryTag: connect.NewClient[v1alpha1.GetRepositoryTagRequest, v1alpha1.GetRepositoryTagResponse]( httpClient, baseURL+RepositoryTagServiceGetRepositoryTagProcedure, - connect.WithSchema(repositoryTagServiceGetRepositoryTagMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("GetRepositoryTag")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), createRepositoryTag: connect.NewClient[v1alpha1.CreateRepositoryTagRequest, v1alpha1.CreateRepositoryTagResponse]( httpClient, baseURL+RepositoryTagServiceCreateRepositoryTagProcedure, - connect.WithSchema(repositoryTagServiceCreateRepositoryTagMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("CreateRepositoryTag")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), updateRepositoryTag: connect.NewClient[v1alpha1.UpdateRepositoryTagRequest, v1alpha1.UpdateRepositoryTagResponse]( httpClient, baseURL+RepositoryTagServiceUpdateRepositoryTagProcedure, - connect.WithSchema(repositoryTagServiceUpdateRepositoryTagMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("UpdateRepositoryTag")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), listRepositoryTags: connect.NewClient[v1alpha1.ListRepositoryTagsRequest, v1alpha1.ListRepositoryTagsResponse]( httpClient, baseURL+RepositoryTagServiceListRepositoryTagsProcedure, - connect.WithSchema(repositoryTagServiceListRepositoryTagsMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("ListRepositoryTags")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listRepositoryTagsForReference: connect.NewClient[v1alpha1.ListRepositoryTagsForReferenceRequest, v1alpha1.ListRepositoryTagsForReferenceResponse]( httpClient, baseURL+RepositoryTagServiceListRepositoryTagsForReferenceProcedure, - connect.WithSchema(repositoryTagServiceListRepositoryTagsForReferenceMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("ListRepositoryTagsForReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -196,38 +187,39 @@ type RepositoryTagServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewRepositoryTagServiceHandler(svc RepositoryTagServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + repositoryTagServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_repository_tag_proto.Services().ByName("RepositoryTagService").Methods() repositoryTagServiceGetRepositoryTagHandler := connect.NewUnaryHandler( RepositoryTagServiceGetRepositoryTagProcedure, svc.GetRepositoryTag, - connect.WithSchema(repositoryTagServiceGetRepositoryTagMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("GetRepositoryTag")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) repositoryTagServiceCreateRepositoryTagHandler := connect.NewUnaryHandler( RepositoryTagServiceCreateRepositoryTagProcedure, svc.CreateRepositoryTag, - connect.WithSchema(repositoryTagServiceCreateRepositoryTagMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("CreateRepositoryTag")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) repositoryTagServiceUpdateRepositoryTagHandler := connect.NewUnaryHandler( RepositoryTagServiceUpdateRepositoryTagProcedure, svc.UpdateRepositoryTag, - connect.WithSchema(repositoryTagServiceUpdateRepositoryTagMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("UpdateRepositoryTag")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) repositoryTagServiceListRepositoryTagsHandler := connect.NewUnaryHandler( RepositoryTagServiceListRepositoryTagsProcedure, svc.ListRepositoryTags, - connect.WithSchema(repositoryTagServiceListRepositoryTagsMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("ListRepositoryTags")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) repositoryTagServiceListRepositoryTagsForReferenceHandler := connect.NewUnaryHandler( RepositoryTagServiceListRepositoryTagsForReferenceProcedure, svc.ListRepositoryTagsForReference, - connect.WithSchema(repositoryTagServiceListRepositoryTagsForReferenceMethodDescriptor), + connect.WithSchema(repositoryTagServiceMethods.ByName("ListRepositoryTagsForReference")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resolve.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resolve.connect.go index 341703671b..69bbcfc638 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resolve.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resolve.connect.go @@ -81,22 +81,6 @@ const ( LocalResolveServiceGetLocalModulePinsProcedure = "/buf.alpha.registry.v1alpha1.LocalResolveService/GetLocalModulePins" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - resolveServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_resolve_proto.Services().ByName("ResolveService") - resolveServiceGetModulePinsMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetModulePins") - resolveServiceGetGoVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetGoVersion") - resolveServiceGetSwiftVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetSwiftVersion") - resolveServiceGetMavenVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetMavenVersion") - resolveServiceGetNPMVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetNPMVersion") - resolveServiceGetPythonVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetPythonVersion") - resolveServiceGetCargoVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetCargoVersion") - resolveServiceGetNugetVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetNugetVersion") - resolveServiceGetCmakeVersionMethodDescriptor = resolveServiceServiceDescriptor.Methods().ByName("GetCmakeVersion") - localResolveServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_resolve_proto.Services().ByName("LocalResolveService") - localResolveServiceGetLocalModulePinsMethodDescriptor = localResolveServiceServiceDescriptor.Methods().ByName("GetLocalModulePins") -) - // ResolveServiceClient is a client for the buf.alpha.registry.v1alpha1.ResolveService service. type ResolveServiceClient interface { // GetModulePins finds all the latest digests and respective dependencies of @@ -134,67 +118,68 @@ type ResolveServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewResolveServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ResolveServiceClient { baseURL = strings.TrimRight(baseURL, "/") + resolveServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_resolve_proto.Services().ByName("ResolveService").Methods() return &resolveServiceClient{ getModulePins: connect.NewClient[v1alpha1.GetModulePinsRequest, v1alpha1.GetModulePinsResponse]( httpClient, baseURL+ResolveServiceGetModulePinsProcedure, - connect.WithSchema(resolveServiceGetModulePinsMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetModulePins")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getGoVersion: connect.NewClient[v1alpha1.GetGoVersionRequest, v1alpha1.GetGoVersionResponse]( httpClient, baseURL+ResolveServiceGetGoVersionProcedure, - connect.WithSchema(resolveServiceGetGoVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetGoVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getSwiftVersion: connect.NewClient[v1alpha1.GetSwiftVersionRequest, v1alpha1.GetSwiftVersionResponse]( httpClient, baseURL+ResolveServiceGetSwiftVersionProcedure, - connect.WithSchema(resolveServiceGetSwiftVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetSwiftVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getMavenVersion: connect.NewClient[v1alpha1.GetMavenVersionRequest, v1alpha1.GetMavenVersionResponse]( httpClient, baseURL+ResolveServiceGetMavenVersionProcedure, - connect.WithSchema(resolveServiceGetMavenVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetMavenVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getNPMVersion: connect.NewClient[v1alpha1.GetNPMVersionRequest, v1alpha1.GetNPMVersionResponse]( httpClient, baseURL+ResolveServiceGetNPMVersionProcedure, - connect.WithSchema(resolveServiceGetNPMVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetNPMVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getPythonVersion: connect.NewClient[v1alpha1.GetPythonVersionRequest, v1alpha1.GetPythonVersionResponse]( httpClient, baseURL+ResolveServiceGetPythonVersionProcedure, - connect.WithSchema(resolveServiceGetPythonVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetPythonVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getCargoVersion: connect.NewClient[v1alpha1.GetCargoVersionRequest, v1alpha1.GetCargoVersionResponse]( httpClient, baseURL+ResolveServiceGetCargoVersionProcedure, - connect.WithSchema(resolveServiceGetCargoVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetCargoVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getNugetVersion: connect.NewClient[v1alpha1.GetNugetVersionRequest, v1alpha1.GetNugetVersionResponse]( httpClient, baseURL+ResolveServiceGetNugetVersionProcedure, - connect.WithSchema(resolveServiceGetNugetVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetNugetVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getCmakeVersion: connect.NewClient[v1alpha1.GetCmakeVersionRequest, v1alpha1.GetCmakeVersionResponse]( httpClient, baseURL+ResolveServiceGetCmakeVersionProcedure, - connect.WithSchema(resolveServiceGetCmakeVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetCmakeVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -294,66 +279,67 @@ type ResolveServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewResolveServiceHandler(svc ResolveServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + resolveServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_resolve_proto.Services().ByName("ResolveService").Methods() resolveServiceGetModulePinsHandler := connect.NewUnaryHandler( ResolveServiceGetModulePinsProcedure, svc.GetModulePins, - connect.WithSchema(resolveServiceGetModulePinsMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetModulePins")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetGoVersionHandler := connect.NewUnaryHandler( ResolveServiceGetGoVersionProcedure, svc.GetGoVersion, - connect.WithSchema(resolveServiceGetGoVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetGoVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetSwiftVersionHandler := connect.NewUnaryHandler( ResolveServiceGetSwiftVersionProcedure, svc.GetSwiftVersion, - connect.WithSchema(resolveServiceGetSwiftVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetSwiftVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetMavenVersionHandler := connect.NewUnaryHandler( ResolveServiceGetMavenVersionProcedure, svc.GetMavenVersion, - connect.WithSchema(resolveServiceGetMavenVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetMavenVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetNPMVersionHandler := connect.NewUnaryHandler( ResolveServiceGetNPMVersionProcedure, svc.GetNPMVersion, - connect.WithSchema(resolveServiceGetNPMVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetNPMVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetPythonVersionHandler := connect.NewUnaryHandler( ResolveServiceGetPythonVersionProcedure, svc.GetPythonVersion, - connect.WithSchema(resolveServiceGetPythonVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetPythonVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetCargoVersionHandler := connect.NewUnaryHandler( ResolveServiceGetCargoVersionProcedure, svc.GetCargoVersion, - connect.WithSchema(resolveServiceGetCargoVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetCargoVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetNugetVersionHandler := connect.NewUnaryHandler( ResolveServiceGetNugetVersionProcedure, svc.GetNugetVersion, - connect.WithSchema(resolveServiceGetNugetVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetNugetVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) resolveServiceGetCmakeVersionHandler := connect.NewUnaryHandler( ResolveServiceGetCmakeVersionProcedure, svc.GetCmakeVersion, - connect.WithSchema(resolveServiceGetCmakeVersionMethodDescriptor), + connect.WithSchema(resolveServiceMethods.ByName("GetCmakeVersion")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) @@ -450,11 +436,12 @@ type LocalResolveServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewLocalResolveServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) LocalResolveServiceClient { baseURL = strings.TrimRight(baseURL, "/") + localResolveServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_resolve_proto.Services().ByName("LocalResolveService").Methods() return &localResolveServiceClient{ getLocalModulePins: connect.NewClient[v1alpha1.GetLocalModulePinsRequest, v1alpha1.GetLocalModulePinsResponse]( httpClient, baseURL+LocalResolveServiceGetLocalModulePinsProcedure, - connect.WithSchema(localResolveServiceGetLocalModulePinsMethodDescriptor), + connect.WithSchema(localResolveServiceMethods.ByName("GetLocalModulePins")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -495,10 +482,11 @@ type LocalResolveServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewLocalResolveServiceHandler(svc LocalResolveServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + localResolveServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_resolve_proto.Services().ByName("LocalResolveService").Methods() localResolveServiceGetLocalModulePinsHandler := connect.NewUnaryHandler( LocalResolveServiceGetLocalModulePinsProcedure, svc.GetLocalModulePins, - connect.WithSchema(localResolveServiceGetLocalModulePinsMethodDescriptor), + connect.WithSchema(localResolveServiceMethods.ByName("GetLocalModulePins")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resource.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resource.connect.go index bd15850801..a9958010f1 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resource.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/resource.connect.go @@ -52,12 +52,6 @@ const ( ResourceServiceGetResourceByNameProcedure = "/buf.alpha.registry.v1alpha1.ResourceService/GetResourceByName" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - resourceServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_resource_proto.Services().ByName("ResourceService") - resourceServiceGetResourceByNameMethodDescriptor = resourceServiceServiceDescriptor.Methods().ByName("GetResourceByName") -) - // ResourceServiceClient is a client for the buf.alpha.registry.v1alpha1.ResourceService service. type ResourceServiceClient interface { // GetResourceByName takes a resource name and returns the @@ -74,11 +68,12 @@ type ResourceServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewResourceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ResourceServiceClient { baseURL = strings.TrimRight(baseURL, "/") + resourceServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_resource_proto.Services().ByName("ResourceService").Methods() return &resourceServiceClient{ getResourceByName: connect.NewClient[v1alpha1.GetResourceByNameRequest, v1alpha1.GetResourceByNameResponse]( httpClient, baseURL+ResourceServiceGetResourceByNameProcedure, - connect.WithSchema(resourceServiceGetResourceByNameMethodDescriptor), + connect.WithSchema(resourceServiceMethods.ByName("GetResourceByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -109,10 +104,11 @@ type ResourceServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewResourceServiceHandler(svc ResourceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + resourceServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_resource_proto.Services().ByName("ResourceService").Methods() resourceServiceGetResourceByNameHandler := connect.NewUnaryHandler( ResourceServiceGetResourceByNameProcedure, svc.GetResourceByName, - connect.WithSchema(resourceServiceGetResourceByNameMethodDescriptor), + connect.WithSchema(resourceServiceMethods.ByName("GetResourceByName")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/schema.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/schema.connect.go index 737155f23f..804c0469ff 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/schema.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/schema.connect.go @@ -54,13 +54,6 @@ const ( SchemaServiceConvertMessageProcedure = "/buf.alpha.registry.v1alpha1.SchemaService/ConvertMessage" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - schemaServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_schema_proto.Services().ByName("SchemaService") - schemaServiceGetSchemaMethodDescriptor = schemaServiceServiceDescriptor.Methods().ByName("GetSchema") - schemaServiceConvertMessageMethodDescriptor = schemaServiceServiceDescriptor.Methods().ByName("ConvertMessage") -) - // SchemaServiceClient is a client for the buf.alpha.registry.v1alpha1.SchemaService service. type SchemaServiceClient interface { // GetSchema allows the caller to download a schema for one or more requested @@ -80,18 +73,19 @@ type SchemaServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewSchemaServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SchemaServiceClient { baseURL = strings.TrimRight(baseURL, "/") + schemaServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_schema_proto.Services().ByName("SchemaService").Methods() return &schemaServiceClient{ getSchema: connect.NewClient[v1alpha1.GetSchemaRequest, v1alpha1.GetSchemaResponse]( httpClient, baseURL+SchemaServiceGetSchemaProcedure, - connect.WithSchema(schemaServiceGetSchemaMethodDescriptor), + connect.WithSchema(schemaServiceMethods.ByName("GetSchema")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), convertMessage: connect.NewClient[v1alpha1.ConvertMessageRequest, v1alpha1.ConvertMessageResponse]( httpClient, baseURL+SchemaServiceConvertMessageProcedure, - connect.WithSchema(schemaServiceConvertMessageMethodDescriptor), + connect.WithSchema(schemaServiceMethods.ByName("ConvertMessage")), connect.WithClientOptions(opts...), ), } @@ -130,17 +124,18 @@ type SchemaServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewSchemaServiceHandler(svc SchemaServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + schemaServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_schema_proto.Services().ByName("SchemaService").Methods() schemaServiceGetSchemaHandler := connect.NewUnaryHandler( SchemaServiceGetSchemaProcedure, svc.GetSchema, - connect.WithSchema(schemaServiceGetSchemaMethodDescriptor), + connect.WithSchema(schemaServiceMethods.ByName("GetSchema")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) schemaServiceConvertMessageHandler := connect.NewUnaryHandler( SchemaServiceConvertMessageProcedure, svc.ConvertMessage, - connect.WithSchema(schemaServiceConvertMessageMethodDescriptor), + connect.WithSchema(schemaServiceMethods.ByName("ConvertMessage")), connect.WithHandlerOptions(opts...), ) return "/buf.alpha.registry.v1alpha1.SchemaService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/scim_token.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/scim_token.connect.go index f7380d1d21..e69b361d33 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/scim_token.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/scim_token.connect.go @@ -58,14 +58,6 @@ const ( SCIMTokenServiceDeleteSCIMTokenProcedure = "/buf.alpha.registry.v1alpha1.SCIMTokenService/DeleteSCIMToken" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - sCIMTokenServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_scim_token_proto.Services().ByName("SCIMTokenService") - sCIMTokenServiceCreateSCIMTokenMethodDescriptor = sCIMTokenServiceServiceDescriptor.Methods().ByName("CreateSCIMToken") - sCIMTokenServiceListSCIMTokensMethodDescriptor = sCIMTokenServiceServiceDescriptor.Methods().ByName("ListSCIMTokens") - sCIMTokenServiceDeleteSCIMTokenMethodDescriptor = sCIMTokenServiceServiceDescriptor.Methods().ByName("DeleteSCIMToken") -) - // SCIMTokenServiceClient is a client for the buf.alpha.registry.v1alpha1.SCIMTokenService service. type SCIMTokenServiceClient interface { // CreateToken creates a new token suitable for authentication to the SCIM API. @@ -92,24 +84,25 @@ type SCIMTokenServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewSCIMTokenServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SCIMTokenServiceClient { baseURL = strings.TrimRight(baseURL, "/") + sCIMTokenServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_scim_token_proto.Services().ByName("SCIMTokenService").Methods() return &sCIMTokenServiceClient{ createSCIMToken: connect.NewClient[v1alpha1.CreateSCIMTokenRequest, v1alpha1.CreateSCIMTokenResponse]( httpClient, baseURL+SCIMTokenServiceCreateSCIMTokenProcedure, - connect.WithSchema(sCIMTokenServiceCreateSCIMTokenMethodDescriptor), + connect.WithSchema(sCIMTokenServiceMethods.ByName("CreateSCIMToken")), connect.WithClientOptions(opts...), ), listSCIMTokens: connect.NewClient[v1alpha1.ListSCIMTokensRequest, v1alpha1.ListSCIMTokensResponse]( httpClient, baseURL+SCIMTokenServiceListSCIMTokensProcedure, - connect.WithSchema(sCIMTokenServiceListSCIMTokensMethodDescriptor), + connect.WithSchema(sCIMTokenServiceMethods.ByName("ListSCIMTokens")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), deleteSCIMToken: connect.NewClient[v1alpha1.DeleteSCIMTokenRequest, v1alpha1.DeleteSCIMTokenResponse]( httpClient, baseURL+SCIMTokenServiceDeleteSCIMTokenProcedure, - connect.WithSchema(sCIMTokenServiceDeleteSCIMTokenMethodDescriptor), + connect.WithSchema(sCIMTokenServiceMethods.ByName("DeleteSCIMToken")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), @@ -161,23 +154,24 @@ type SCIMTokenServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewSCIMTokenServiceHandler(svc SCIMTokenServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + sCIMTokenServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_scim_token_proto.Services().ByName("SCIMTokenService").Methods() sCIMTokenServiceCreateSCIMTokenHandler := connect.NewUnaryHandler( SCIMTokenServiceCreateSCIMTokenProcedure, svc.CreateSCIMToken, - connect.WithSchema(sCIMTokenServiceCreateSCIMTokenMethodDescriptor), + connect.WithSchema(sCIMTokenServiceMethods.ByName("CreateSCIMToken")), connect.WithHandlerOptions(opts...), ) sCIMTokenServiceListSCIMTokensHandler := connect.NewUnaryHandler( SCIMTokenServiceListSCIMTokensProcedure, svc.ListSCIMTokens, - connect.WithSchema(sCIMTokenServiceListSCIMTokensMethodDescriptor), + connect.WithSchema(sCIMTokenServiceMethods.ByName("ListSCIMTokens")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) sCIMTokenServiceDeleteSCIMTokenHandler := connect.NewUnaryHandler( SCIMTokenServiceDeleteSCIMTokenProcedure, svc.DeleteSCIMToken, - connect.WithSchema(sCIMTokenServiceDeleteSCIMTokenMethodDescriptor), + connect.WithSchema(sCIMTokenServiceMethods.ByName("DeleteSCIMToken")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/search.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/search.connect.go index 9a38a9d576..0ef828ff7b 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/search.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/search.connect.go @@ -59,15 +59,6 @@ const ( SearchServiceSearchModuleContentProcedure = "/buf.alpha.registry.v1alpha1.SearchService/SearchModuleContent" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - searchServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_search_proto.Services().ByName("SearchService") - searchServiceSearchMethodDescriptor = searchServiceServiceDescriptor.Methods().ByName("Search") - searchServiceSearchTagMethodDescriptor = searchServiceServiceDescriptor.Methods().ByName("SearchTag") - searchServiceSearchDraftMethodDescriptor = searchServiceServiceDescriptor.Methods().ByName("SearchDraft") - searchServiceSearchModuleContentMethodDescriptor = searchServiceServiceDescriptor.Methods().ByName("SearchModuleContent") -) - // SearchServiceClient is a client for the buf.alpha.registry.v1alpha1.SearchService service. type SearchServiceClient interface { // Search searches the BSR. @@ -89,32 +80,33 @@ type SearchServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewSearchServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SearchServiceClient { baseURL = strings.TrimRight(baseURL, "/") + searchServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_search_proto.Services().ByName("SearchService").Methods() return &searchServiceClient{ search: connect.NewClient[v1alpha1.SearchRequest, v1alpha1.SearchResponse]( httpClient, baseURL+SearchServiceSearchProcedure, - connect.WithSchema(searchServiceSearchMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("Search")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), searchTag: connect.NewClient[v1alpha1.SearchTagRequest, v1alpha1.SearchTagResponse]( httpClient, baseURL+SearchServiceSearchTagProcedure, - connect.WithSchema(searchServiceSearchTagMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("SearchTag")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), searchDraft: connect.NewClient[v1alpha1.SearchDraftRequest, v1alpha1.SearchDraftResponse]( httpClient, baseURL+SearchServiceSearchDraftProcedure, - connect.WithSchema(searchServiceSearchDraftMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("SearchDraft")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), searchModuleContent: connect.NewClient[v1alpha1.SearchModuleContentRequest, v1alpha1.SearchModuleContentResponse]( httpClient, baseURL+SearchServiceSearchModuleContentProcedure, - connect.WithSchema(searchServiceSearchModuleContentMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("SearchModuleContent")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -168,31 +160,32 @@ type SearchServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewSearchServiceHandler(svc SearchServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + searchServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_search_proto.Services().ByName("SearchService").Methods() searchServiceSearchHandler := connect.NewUnaryHandler( SearchServiceSearchProcedure, svc.Search, - connect.WithSchema(searchServiceSearchMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("Search")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) searchServiceSearchTagHandler := connect.NewUnaryHandler( SearchServiceSearchTagProcedure, svc.SearchTag, - connect.WithSchema(searchServiceSearchTagMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("SearchTag")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) searchServiceSearchDraftHandler := connect.NewUnaryHandler( SearchServiceSearchDraftProcedure, svc.SearchDraft, - connect.WithSchema(searchServiceSearchDraftMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("SearchDraft")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) searchServiceSearchModuleContentHandler := connect.NewUnaryHandler( SearchServiceSearchModuleContentProcedure, svc.SearchModuleContent, - connect.WithSchema(searchServiceSearchModuleContentMethodDescriptor), + connect.WithSchema(searchServiceMethods.ByName("SearchModuleContent")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio.connect.go index cbc96f1118..c28e3739dc 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio.connect.go @@ -55,13 +55,6 @@ const ( StudioServiceSetStudioAgentPresetsProcedure = "/buf.alpha.registry.v1alpha1.StudioService/SetStudioAgentPresets" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - studioServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_studio_proto.Services().ByName("StudioService") - studioServiceListStudioAgentPresetsMethodDescriptor = studioServiceServiceDescriptor.Methods().ByName("ListStudioAgentPresets") - studioServiceSetStudioAgentPresetsMethodDescriptor = studioServiceServiceDescriptor.Methods().ByName("SetStudioAgentPresets") -) - // StudioServiceClient is a client for the buf.alpha.registry.v1alpha1.StudioService service. type StudioServiceClient interface { // ListStudioAgentPresets returns a list of agent presets in the server. @@ -79,18 +72,19 @@ type StudioServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewStudioServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) StudioServiceClient { baseURL = strings.TrimRight(baseURL, "/") + studioServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_studio_proto.Services().ByName("StudioService").Methods() return &studioServiceClient{ listStudioAgentPresets: connect.NewClient[v1alpha1.ListStudioAgentPresetsRequest, v1alpha1.ListStudioAgentPresetsResponse]( httpClient, baseURL+StudioServiceListStudioAgentPresetsProcedure, - connect.WithSchema(studioServiceListStudioAgentPresetsMethodDescriptor), + connect.WithSchema(studioServiceMethods.ByName("ListStudioAgentPresets")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), setStudioAgentPresets: connect.NewClient[v1alpha1.SetStudioAgentPresetsRequest, v1alpha1.SetStudioAgentPresetsResponse]( httpClient, baseURL+StudioServiceSetStudioAgentPresetsProcedure, - connect.WithSchema(studioServiceSetStudioAgentPresetsMethodDescriptor), + connect.WithSchema(studioServiceMethods.ByName("SetStudioAgentPresets")), connect.WithClientOptions(opts...), ), } @@ -127,17 +121,18 @@ type StudioServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewStudioServiceHandler(svc StudioServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + studioServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_studio_proto.Services().ByName("StudioService").Methods() studioServiceListStudioAgentPresetsHandler := connect.NewUnaryHandler( StudioServiceListStudioAgentPresetsProcedure, svc.ListStudioAgentPresets, - connect.WithSchema(studioServiceListStudioAgentPresetsMethodDescriptor), + connect.WithSchema(studioServiceMethods.ByName("ListStudioAgentPresets")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) studioServiceSetStudioAgentPresetsHandler := connect.NewUnaryHandler( StudioServiceSetStudioAgentPresetsProcedure, svc.SetStudioAgentPresets, - connect.WithSchema(studioServiceSetStudioAgentPresetsMethodDescriptor), + connect.WithSchema(studioServiceMethods.ByName("SetStudioAgentPresets")), connect.WithHandlerOptions(opts...), ) return "/buf.alpha.registry.v1alpha1.StudioService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio_request.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio_request.connect.go index 38884e421f..73c0c54526 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio_request.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/studio_request.connect.go @@ -61,15 +61,6 @@ const ( StudioRequestServiceListStudioRequestsProcedure = "/buf.alpha.registry.v1alpha1.StudioRequestService/ListStudioRequests" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - studioRequestServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_studio_request_proto.Services().ByName("StudioRequestService") - studioRequestServiceCreateStudioRequestMethodDescriptor = studioRequestServiceServiceDescriptor.Methods().ByName("CreateStudioRequest") - studioRequestServiceRenameStudioRequestMethodDescriptor = studioRequestServiceServiceDescriptor.Methods().ByName("RenameStudioRequest") - studioRequestServiceDeleteStudioRequestMethodDescriptor = studioRequestServiceServiceDescriptor.Methods().ByName("DeleteStudioRequest") - studioRequestServiceListStudioRequestsMethodDescriptor = studioRequestServiceServiceDescriptor.Methods().ByName("ListStudioRequests") -) - // StudioRequestServiceClient is a client for the buf.alpha.registry.v1alpha1.StudioRequestService // service. type StudioRequestServiceClient interface { @@ -95,30 +86,31 @@ type StudioRequestServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewStudioRequestServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) StudioRequestServiceClient { baseURL = strings.TrimRight(baseURL, "/") + studioRequestServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_studio_request_proto.Services().ByName("StudioRequestService").Methods() return &studioRequestServiceClient{ createStudioRequest: connect.NewClient[v1alpha1.CreateStudioRequestRequest, v1alpha1.CreateStudioRequestResponse]( httpClient, baseURL+StudioRequestServiceCreateStudioRequestProcedure, - connect.WithSchema(studioRequestServiceCreateStudioRequestMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("CreateStudioRequest")), connect.WithClientOptions(opts...), ), renameStudioRequest: connect.NewClient[v1alpha1.RenameStudioRequestRequest, v1alpha1.RenameStudioRequestResponse]( httpClient, baseURL+StudioRequestServiceRenameStudioRequestProcedure, - connect.WithSchema(studioRequestServiceRenameStudioRequestMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("RenameStudioRequest")), connect.WithClientOptions(opts...), ), deleteStudioRequest: connect.NewClient[v1alpha1.DeleteStudioRequestRequest, v1alpha1.DeleteStudioRequestResponse]( httpClient, baseURL+StudioRequestServiceDeleteStudioRequestProcedure, - connect.WithSchema(studioRequestServiceDeleteStudioRequestMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("DeleteStudioRequest")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), listStudioRequests: connect.NewClient[v1alpha1.ListStudioRequestsRequest, v1alpha1.ListStudioRequestsResponse]( httpClient, baseURL+StudioRequestServiceListStudioRequestsProcedure, - connect.WithSchema(studioRequestServiceListStudioRequestsMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("ListStudioRequests")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -174,29 +166,30 @@ type StudioRequestServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewStudioRequestServiceHandler(svc StudioRequestServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + studioRequestServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_studio_request_proto.Services().ByName("StudioRequestService").Methods() studioRequestServiceCreateStudioRequestHandler := connect.NewUnaryHandler( StudioRequestServiceCreateStudioRequestProcedure, svc.CreateStudioRequest, - connect.WithSchema(studioRequestServiceCreateStudioRequestMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("CreateStudioRequest")), connect.WithHandlerOptions(opts...), ) studioRequestServiceRenameStudioRequestHandler := connect.NewUnaryHandler( StudioRequestServiceRenameStudioRequestProcedure, svc.RenameStudioRequest, - connect.WithSchema(studioRequestServiceRenameStudioRequestMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("RenameStudioRequest")), connect.WithHandlerOptions(opts...), ) studioRequestServiceDeleteStudioRequestHandler := connect.NewUnaryHandler( StudioRequestServiceDeleteStudioRequestProcedure, svc.DeleteStudioRequest, - connect.WithSchema(studioRequestServiceDeleteStudioRequestMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("DeleteStudioRequest")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) studioRequestServiceListStudioRequestsHandler := connect.NewUnaryHandler( StudioRequestServiceListStudioRequestsProcedure, svc.ListStudioRequests, - connect.WithSchema(studioRequestServiceListStudioRequestsMethodDescriptor), + connect.WithSchema(studioRequestServiceMethods.ByName("ListStudioRequests")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/token.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/token.connect.go index d17bc39008..917928b053 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/token.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/token.connect.go @@ -59,15 +59,6 @@ const ( TokenServiceDeleteTokenProcedure = "/buf.alpha.registry.v1alpha1.TokenService/DeleteToken" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - tokenServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_token_proto.Services().ByName("TokenService") - tokenServiceCreateTokenMethodDescriptor = tokenServiceServiceDescriptor.Methods().ByName("CreateToken") - tokenServiceGetTokenMethodDescriptor = tokenServiceServiceDescriptor.Methods().ByName("GetToken") - tokenServiceListTokensMethodDescriptor = tokenServiceServiceDescriptor.Methods().ByName("ListTokens") - tokenServiceDeleteTokenMethodDescriptor = tokenServiceServiceDescriptor.Methods().ByName("DeleteToken") -) - // TokenServiceClient is a client for the buf.alpha.registry.v1alpha1.TokenService service. type TokenServiceClient interface { // CreateToken creates a new token suitable for machine-to-machine authentication. @@ -95,31 +86,32 @@ type TokenServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewTokenServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TokenServiceClient { baseURL = strings.TrimRight(baseURL, "/") + tokenServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_token_proto.Services().ByName("TokenService").Methods() return &tokenServiceClient{ createToken: connect.NewClient[v1alpha1.CreateTokenRequest, v1alpha1.CreateTokenResponse]( httpClient, baseURL+TokenServiceCreateTokenProcedure, - connect.WithSchema(tokenServiceCreateTokenMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("CreateToken")), connect.WithClientOptions(opts...), ), getToken: connect.NewClient[v1alpha1.GetTokenRequest, v1alpha1.GetTokenResponse]( httpClient, baseURL+TokenServiceGetTokenProcedure, - connect.WithSchema(tokenServiceGetTokenMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("GetToken")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listTokens: connect.NewClient[v1alpha1.ListTokensRequest, v1alpha1.ListTokensResponse]( httpClient, baseURL+TokenServiceListTokensProcedure, - connect.WithSchema(tokenServiceListTokensMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("ListTokens")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), deleteToken: connect.NewClient[v1alpha1.DeleteTokenRequest, v1alpha1.DeleteTokenResponse]( httpClient, baseURL+TokenServiceDeleteTokenProcedure, - connect.WithSchema(tokenServiceDeleteTokenMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("DeleteToken")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), @@ -178,30 +170,31 @@ type TokenServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewTokenServiceHandler(svc TokenServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + tokenServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_token_proto.Services().ByName("TokenService").Methods() tokenServiceCreateTokenHandler := connect.NewUnaryHandler( TokenServiceCreateTokenProcedure, svc.CreateToken, - connect.WithSchema(tokenServiceCreateTokenMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("CreateToken")), connect.WithHandlerOptions(opts...), ) tokenServiceGetTokenHandler := connect.NewUnaryHandler( TokenServiceGetTokenProcedure, svc.GetToken, - connect.WithSchema(tokenServiceGetTokenMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("GetToken")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) tokenServiceListTokensHandler := connect.NewUnaryHandler( TokenServiceListTokensProcedure, svc.ListTokens, - connect.WithSchema(tokenServiceListTokensMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("ListTokens")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) tokenServiceDeleteTokenHandler := connect.NewUnaryHandler( TokenServiceDeleteTokenProcedure, svc.DeleteToken, - connect.WithSchema(tokenServiceDeleteTokenMethodDescriptor), + connect.WithSchema(tokenServiceMethods.ByName("DeleteToken")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/user.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/user.connect.go index afbcd10d17..5e192b0926 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/user.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/user.connect.go @@ -80,23 +80,6 @@ const ( UserServiceUpdateUserPluginPreferencesProcedure = "/buf.alpha.registry.v1alpha1.UserService/UpdateUserPluginPreferences" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - userServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_user_proto.Services().ByName("UserService") - userServiceCreateUserMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("CreateUser") - userServiceGetUserMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("GetUser") - userServiceGetUserByUsernameMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("GetUserByUsername") - userServiceListUsersMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("ListUsers") - userServiceListOrganizationUsersMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("ListOrganizationUsers") - userServiceDeleteUserMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("DeleteUser") - userServiceDeactivateUserMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("DeactivateUser") - userServiceUpdateUserServerRoleMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("UpdateUserServerRole") - userServiceCountUsersMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("CountUsers") - userServiceUpdateUserSettingsMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("UpdateUserSettings") - userServiceGetUserPluginPreferencesMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("GetUserPluginPreferences") - userServiceUpdateUserPluginPreferencesMethodDescriptor = userServiceServiceDescriptor.Methods().ByName("UpdateUserPluginPreferences") -) - // UserServiceClient is a client for the buf.alpha.registry.v1alpha1.UserService service. type UserServiceClient interface { // CreateUser creates a new user with the given username. @@ -137,86 +120,87 @@ type UserServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient { baseURL = strings.TrimRight(baseURL, "/") + userServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_user_proto.Services().ByName("UserService").Methods() return &userServiceClient{ createUser: connect.NewClient[v1alpha1.CreateUserRequest, v1alpha1.CreateUserResponse]( httpClient, baseURL+UserServiceCreateUserProcedure, - connect.WithSchema(userServiceCreateUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("CreateUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), getUser: connect.NewClient[v1alpha1.GetUserRequest, v1alpha1.GetUserResponse]( httpClient, baseURL+UserServiceGetUserProcedure, - connect.WithSchema(userServiceGetUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("GetUser")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), getUserByUsername: connect.NewClient[v1alpha1.GetUserByUsernameRequest, v1alpha1.GetUserByUsernameResponse]( httpClient, baseURL+UserServiceGetUserByUsernameProcedure, - connect.WithSchema(userServiceGetUserByUsernameMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("GetUserByUsername")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listUsers: connect.NewClient[v1alpha1.ListUsersRequest, v1alpha1.ListUsersResponse]( httpClient, baseURL+UserServiceListUsersProcedure, - connect.WithSchema(userServiceListUsersMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("ListUsers")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), listOrganizationUsers: connect.NewClient[v1alpha1.ListOrganizationUsersRequest, v1alpha1.ListOrganizationUsersResponse]( httpClient, baseURL+UserServiceListOrganizationUsersProcedure, - connect.WithSchema(userServiceListOrganizationUsersMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("ListOrganizationUsers")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), deleteUser: connect.NewClient[v1alpha1.DeleteUserRequest, v1alpha1.DeleteUserResponse]( httpClient, baseURL+UserServiceDeleteUserProcedure, - connect.WithSchema(userServiceDeleteUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("DeleteUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), deactivateUser: connect.NewClient[v1alpha1.DeactivateUserRequest, v1alpha1.DeactivateUserResponse]( httpClient, baseURL+UserServiceDeactivateUserProcedure, - connect.WithSchema(userServiceDeactivateUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("DeactivateUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), updateUserServerRole: connect.NewClient[v1alpha1.UpdateUserServerRoleRequest, v1alpha1.UpdateUserServerRoleResponse]( httpClient, baseURL+UserServiceUpdateUserServerRoleProcedure, - connect.WithSchema(userServiceUpdateUserServerRoleMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("UpdateUserServerRole")), connect.WithClientOptions(opts...), ), countUsers: connect.NewClient[v1alpha1.CountUsersRequest, v1alpha1.CountUsersResponse]( httpClient, baseURL+UserServiceCountUsersProcedure, - connect.WithSchema(userServiceCountUsersMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("CountUsers")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), updateUserSettings: connect.NewClient[v1alpha1.UpdateUserSettingsRequest, v1alpha1.UpdateUserSettingsResponse]( httpClient, baseURL+UserServiceUpdateUserSettingsProcedure, - connect.WithSchema(userServiceUpdateUserSettingsMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("UpdateUserSettings")), connect.WithClientOptions(opts...), ), getUserPluginPreferences: connect.NewClient[v1alpha1.GetUserPluginPreferencesRequest, v1alpha1.GetUserPluginPreferencesResponse]( httpClient, baseURL+UserServiceGetUserPluginPreferencesProcedure, - connect.WithSchema(userServiceGetUserPluginPreferencesMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("GetUserPluginPreferences")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), updateUserPluginPreferences: connect.NewClient[v1alpha1.UpdateUserPluginPreferencesRequest, v1alpha1.UpdateUserPluginPreferencesResponse]( httpClient, baseURL+UserServiceUpdateUserPluginPreferencesProcedure, - connect.WithSchema(userServiceUpdateUserPluginPreferencesMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("UpdateUserPluginPreferences")), connect.WithClientOptions(opts...), ), } @@ -336,85 +320,86 @@ type UserServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + userServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_user_proto.Services().ByName("UserService").Methods() userServiceCreateUserHandler := connect.NewUnaryHandler( UserServiceCreateUserProcedure, svc.CreateUser, - connect.WithSchema(userServiceCreateUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("CreateUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) userServiceGetUserHandler := connect.NewUnaryHandler( UserServiceGetUserProcedure, svc.GetUser, - connect.WithSchema(userServiceGetUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("GetUser")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) userServiceGetUserByUsernameHandler := connect.NewUnaryHandler( UserServiceGetUserByUsernameProcedure, svc.GetUserByUsername, - connect.WithSchema(userServiceGetUserByUsernameMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("GetUserByUsername")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) userServiceListUsersHandler := connect.NewUnaryHandler( UserServiceListUsersProcedure, svc.ListUsers, - connect.WithSchema(userServiceListUsersMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("ListUsers")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) userServiceListOrganizationUsersHandler := connect.NewUnaryHandler( UserServiceListOrganizationUsersProcedure, svc.ListOrganizationUsers, - connect.WithSchema(userServiceListOrganizationUsersMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("ListOrganizationUsers")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) userServiceDeleteUserHandler := connect.NewUnaryHandler( UserServiceDeleteUserProcedure, svc.DeleteUser, - connect.WithSchema(userServiceDeleteUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("DeleteUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) userServiceDeactivateUserHandler := connect.NewUnaryHandler( UserServiceDeactivateUserProcedure, svc.DeactivateUser, - connect.WithSchema(userServiceDeactivateUserMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("DeactivateUser")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) userServiceUpdateUserServerRoleHandler := connect.NewUnaryHandler( UserServiceUpdateUserServerRoleProcedure, svc.UpdateUserServerRole, - connect.WithSchema(userServiceUpdateUserServerRoleMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("UpdateUserServerRole")), connect.WithHandlerOptions(opts...), ) userServiceCountUsersHandler := connect.NewUnaryHandler( UserServiceCountUsersProcedure, svc.CountUsers, - connect.WithSchema(userServiceCountUsersMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("CountUsers")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) userServiceUpdateUserSettingsHandler := connect.NewUnaryHandler( UserServiceUpdateUserSettingsProcedure, svc.UpdateUserSettings, - connect.WithSchema(userServiceUpdateUserSettingsMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("UpdateUserSettings")), connect.WithHandlerOptions(opts...), ) userServiceGetUserPluginPreferencesHandler := connect.NewUnaryHandler( UserServiceGetUserPluginPreferencesProcedure, svc.GetUserPluginPreferences, - connect.WithSchema(userServiceGetUserPluginPreferencesMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("GetUserPluginPreferences")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) userServiceUpdateUserPluginPreferencesHandler := connect.NewUnaryHandler( UserServiceUpdateUserPluginPreferencesProcedure, svc.UpdateUserPluginPreferences, - connect.WithSchema(userServiceUpdateUserPluginPreferencesMethodDescriptor), + connect.WithSchema(userServiceMethods.ByName("UpdateUserPluginPreferences")), connect.WithHandlerOptions(opts...), ) return "/buf.alpha.registry.v1alpha1.UserService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/webhook.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/webhook.connect.go index bdae029837..50b0808b53 100644 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/webhook.connect.go +++ b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/webhook.connect.go @@ -58,14 +58,6 @@ const ( WebhookServiceListWebhooksProcedure = "/buf.alpha.registry.v1alpha1.WebhookService/ListWebhooks" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - webhookServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_webhook_proto.Services().ByName("WebhookService") - webhookServiceCreateWebhookMethodDescriptor = webhookServiceServiceDescriptor.Methods().ByName("CreateWebhook") - webhookServiceDeleteWebhookMethodDescriptor = webhookServiceServiceDescriptor.Methods().ByName("DeleteWebhook") - webhookServiceListWebhooksMethodDescriptor = webhookServiceServiceDescriptor.Methods().ByName("ListWebhooks") -) - // WebhookServiceClient is a client for the buf.alpha.registry.v1alpha1.WebhookService service. type WebhookServiceClient interface { // Create a webhook, subscribes to a given repository event for a callback URL @@ -86,25 +78,26 @@ type WebhookServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewWebhookServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WebhookServiceClient { baseURL = strings.TrimRight(baseURL, "/") + webhookServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_webhook_proto.Services().ByName("WebhookService").Methods() return &webhookServiceClient{ createWebhook: connect.NewClient[v1alpha1.CreateWebhookRequest, v1alpha1.CreateWebhookResponse]( httpClient, baseURL+WebhookServiceCreateWebhookProcedure, - connect.WithSchema(webhookServiceCreateWebhookMethodDescriptor), + connect.WithSchema(webhookServiceMethods.ByName("CreateWebhook")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), deleteWebhook: connect.NewClient[v1alpha1.DeleteWebhookRequest, v1alpha1.DeleteWebhookResponse]( httpClient, baseURL+WebhookServiceDeleteWebhookProcedure, - connect.WithSchema(webhookServiceDeleteWebhookMethodDescriptor), + connect.WithSchema(webhookServiceMethods.ByName("DeleteWebhook")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithClientOptions(opts...), ), listWebhooks: connect.NewClient[v1alpha1.ListWebhooksRequest, v1alpha1.ListWebhooksResponse]( httpClient, baseURL+WebhookServiceListWebhooksProcedure, - connect.WithSchema(webhookServiceListWebhooksMethodDescriptor), + connect.WithSchema(webhookServiceMethods.ByName("ListWebhooks")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithClientOptions(opts...), ), @@ -151,24 +144,25 @@ type WebhookServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewWebhookServiceHandler(svc WebhookServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + webhookServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_webhook_proto.Services().ByName("WebhookService").Methods() webhookServiceCreateWebhookHandler := connect.NewUnaryHandler( WebhookServiceCreateWebhookProcedure, svc.CreateWebhook, - connect.WithSchema(webhookServiceCreateWebhookMethodDescriptor), + connect.WithSchema(webhookServiceMethods.ByName("CreateWebhook")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) webhookServiceDeleteWebhookHandler := connect.NewUnaryHandler( WebhookServiceDeleteWebhookProcedure, svc.DeleteWebhook, - connect.WithSchema(webhookServiceDeleteWebhookMethodDescriptor), + connect.WithSchema(webhookServiceMethods.ByName("DeleteWebhook")), connect.WithIdempotency(connect.IdempotencyIdempotent), connect.WithHandlerOptions(opts...), ) webhookServiceListWebhooksHandler := connect.NewUnaryHandler( WebhookServiceListWebhooksProcedure, svc.ListWebhooks, - connect.WithSchema(webhookServiceListWebhooksMethodDescriptor), + connect.WithSchema(webhookServiceMethods.ByName("ListWebhooks")), connect.WithIdempotency(connect.IdempotencyNoSideEffects), connect.WithHandlerOptions(opts...), ) diff --git a/private/gen/proto/connect/buf/alpha/webhook/v1alpha1/webhookv1alpha1connect/event.connect.go b/private/gen/proto/connect/buf/alpha/webhook/v1alpha1/webhookv1alpha1connect/event.connect.go index 7c457836c1..0d65cf13f7 100644 --- a/private/gen/proto/connect/buf/alpha/webhook/v1alpha1/webhookv1alpha1connect/event.connect.go +++ b/private/gen/proto/connect/buf/alpha/webhook/v1alpha1/webhookv1alpha1connect/event.connect.go @@ -51,12 +51,6 @@ const ( EventServiceEventProcedure = "/buf.alpha.webhook.v1alpha1.EventService/Event" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - eventServiceServiceDescriptor = v1alpha1.File_buf_alpha_webhook_v1alpha1_event_proto.Services().ByName("EventService") - eventServiceEventMethodDescriptor = eventServiceServiceDescriptor.Methods().ByName("Event") -) - // EventServiceClient is a client for the buf.alpha.webhook.v1alpha1.EventService service. type EventServiceClient interface { // Event is the rpc which receives webhook events. @@ -72,11 +66,12 @@ type EventServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewEventServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EventServiceClient { baseURL = strings.TrimRight(baseURL, "/") + eventServiceMethods := v1alpha1.File_buf_alpha_webhook_v1alpha1_event_proto.Services().ByName("EventService").Methods() return &eventServiceClient{ event: connect.NewClient[v1alpha1.EventRequest, v1alpha1.EventResponse]( httpClient, baseURL+EventServiceEventProcedure, - connect.WithSchema(eventServiceEventMethodDescriptor), + connect.WithSchema(eventServiceMethods.ByName("Event")), connect.WithClientOptions(opts...), ), } @@ -104,10 +99,11 @@ type EventServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewEventServiceHandler(svc EventServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + eventServiceMethods := v1alpha1.File_buf_alpha_webhook_v1alpha1_event_proto.Services().ByName("EventService").Methods() eventServiceEventHandler := connect.NewUnaryHandler( EventServiceEventProcedure, svc.Event, - connect.WithSchema(eventServiceEventMethodDescriptor), + connect.WithSchema(eventServiceMethods.ByName("Event")), connect.WithHandlerOptions(opts...), ) return "/buf.alpha.webhook.v1alpha1.EventService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {