Debian Codegraph @

apigeeregistry/apiv1/apigeeregistrypb/registry_service_grpc.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
16 // versions:
17 // - protoc-gen-go-grpc v1.3.0
18 // - protoc v4.25.7
19 // source: google/cloud/apigeeregistry/v1/registry_service.proto
20
21 package apigeeregistrypb
22
23 import (
24 context "context"
25 httpbody "google.golang.org/genproto/googleapis/api/httpbody"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 emptypb "google.golang.org/protobuf/types/known/emptypb"
30 )
31
32 // This is a compile-time assertion to ensure that this generated file
33 // is compatible with the grpc package it is being compiled against.
34 // Requires gRPC-Go v1.32.0 or later.
35 const _ = grpc.SupportPackageIsVersion7
36
37 const (
38 Registry_ListApis_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ListApis"
39 Registry_GetApi_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/GetApi"
40 Registry_CreateApi_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/CreateApi"
41 Registry_UpdateApi_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/UpdateApi"
42 Registry_DeleteApi_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/DeleteApi"
43 Registry_ListApiVersions_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ListApiVersions"
44 Registry_GetApiVersion_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/GetApiVersion"
45 Registry_CreateApiVersion_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/CreateApiVersion"
46 Registry_UpdateApiVersion_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/UpdateApiVersion"
47 Registry_DeleteApiVersion_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/DeleteApiVersion"
48 Registry_ListApiSpecs_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ListApiSpecs"
49 Registry_GetApiSpec_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/GetApiSpec"
50 Registry_GetApiSpecContents_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/GetApiSpecContents"
51 Registry_CreateApiSpec_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/CreateApiSpec"
52 Registry_UpdateApiSpec_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/UpdateApiSpec"
53 Registry_DeleteApiSpec_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/DeleteApiSpec"
54 Registry_TagApiSpecRevision_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/TagApiSpecRevision"
55 Registry_ListApiSpecRevisions_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ListApiSpecRevisions"
56 Registry_RollbackApiSpec_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/RollbackApiSpec"
57 Registry_DeleteApiSpecRevision_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/DeleteApiSpecRevision"
58 Registry_ListApiDeployments_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ListApiDeployments"
59 Registry_GetApiDeployment_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/GetApiDeployment"
60 Registry_CreateApiDeployment_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/CreateApiDeployment"
61 Registry_UpdateApiDeployment_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/UpdateApiDeployment"
62 Registry_DeleteApiDeployment_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/DeleteApiDeployment"
63 Registry_TagApiDeploymentRevision_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/TagApiDeploymentRevision"
64 Registry_ListApiDeploymentRevisions_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ListApiDeploymentRevisions"
65 Registry_RollbackApiDeployment_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/RollbackApiDeployment"
66 Registry_DeleteApiDeploymentRevision_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/DeleteApiDeploymentRevision"
67 Registry_ListArtifacts_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ListArtifacts"
68 Registry_GetArtifact_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/GetArtifact"
69 Registry_GetArtifactContents_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/GetArtifactContents"
70 Registry_CreateArtifact_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/CreateArtifact"
71 Registry_ReplaceArtifact_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/ReplaceArtifact"
72 Registry_DeleteArtifact_FullMethodName = "/google.cloud.apigeeregistry.v1.Registry/DeleteArtifact"
73 )
74
75 // RegistryClient is the client API for Registry service.
76 //
77 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
78 type RegistryClient interface {
79 // Returns matching APIs.
80 ListApis(ctx context.Context, in *ListApisRequest, opts ...grpc.CallOption) (*ListApisResponse, error)
81 // Returns a specified API.
82 GetApi(ctx context.Context, in *GetApiRequest, opts ...grpc.CallOption) (*Api, error)
83 // Creates a specified API.
84 CreateApi(ctx context.Context, in *CreateApiRequest, opts ...grpc.CallOption) (*Api, error)
85 // Used to modify a specified API.
86 UpdateApi(ctx context.Context, in *UpdateApiRequest, opts ...grpc.CallOption) (*Api, error)
87 // Removes a specified API and all of the resources that it
88 // owns.
89 DeleteApi(ctx context.Context, in *DeleteApiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
90 // Returns matching versions.
91 ListApiVersions(ctx context.Context, in *ListApiVersionsRequest, opts ...grpc.CallOption) (*ListApiVersionsResponse, error)
92 // Returns a specified version.
93 GetApiVersion(ctx context.Context, in *GetApiVersionRequest, opts ...grpc.CallOption) (*ApiVersion, error)
94 // Creates a specified version.
95 CreateApiVersion(ctx context.Context, in *CreateApiVersionRequest, opts ...grpc.CallOption) (*ApiVersion, error)
96 // Used to modify a specified version.
97 UpdateApiVersion(ctx context.Context, in *UpdateApiVersionRequest, opts ...grpc.CallOption) (*ApiVersion, error)
98 // Removes a specified version and all of the resources that
99 // it owns.
100 DeleteApiVersion(ctx context.Context, in *DeleteApiVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
101 // Returns matching specs.
102 ListApiSpecs(ctx context.Context, in *ListApiSpecsRequest, opts ...grpc.CallOption) (*ListApiSpecsResponse, error)
103 // Returns a specified spec.
104 GetApiSpec(ctx context.Context, in *GetApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error)
105 // Returns the contents of a specified spec.
106 // If specs are stored with GZip compression, the default behavior
107 // is to return the spec uncompressed (the mime_type response field
108 // indicates the exact format returned).
109 GetApiSpecContents(ctx context.Context, in *GetApiSpecContentsRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
110 // Creates a specified spec.
111 CreateApiSpec(ctx context.Context, in *CreateApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error)
112 // Used to modify a specified spec.
113 UpdateApiSpec(ctx context.Context, in *UpdateApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error)
114 // Removes a specified spec, all revisions, and all child
115 // resources (e.g., artifacts).
116 DeleteApiSpec(ctx context.Context, in *DeleteApiSpecRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
117 // Adds a tag to a specified revision of a spec.
118 TagApiSpecRevision(ctx context.Context, in *TagApiSpecRevisionRequest, opts ...grpc.CallOption) (*ApiSpec, error)
119 // Lists all revisions of a spec.
120 // Revisions are returned in descending order of revision creation time.
121 ListApiSpecRevisions(ctx context.Context, in *ListApiSpecRevisionsRequest, opts ...grpc.CallOption) (*ListApiSpecRevisionsResponse, error)
122 // Sets the current revision to a specified prior revision.
123 // Note that this creates a new revision with a new revision ID.
124 RollbackApiSpec(ctx context.Context, in *RollbackApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error)
125 // Deletes a revision of a spec.
126 DeleteApiSpecRevision(ctx context.Context, in *DeleteApiSpecRevisionRequest, opts ...grpc.CallOption) (*ApiSpec, error)
127 // Returns matching deployments.
128 ListApiDeployments(ctx context.Context, in *ListApiDeploymentsRequest, opts ...grpc.CallOption) (*ListApiDeploymentsResponse, error)
129 // Returns a specified deployment.
130 GetApiDeployment(ctx context.Context, in *GetApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error)
131 // Creates a specified deployment.
132 CreateApiDeployment(ctx context.Context, in *CreateApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error)
133 // Used to modify a specified deployment.
134 UpdateApiDeployment(ctx context.Context, in *UpdateApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error)
135 // Removes a specified deployment, all revisions, and all
136 // child resources (e.g., artifacts).
137 DeleteApiDeployment(ctx context.Context, in *DeleteApiDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
138 // Adds a tag to a specified revision of a
139 // deployment.
140 TagApiDeploymentRevision(ctx context.Context, in *TagApiDeploymentRevisionRequest, opts ...grpc.CallOption) (*ApiDeployment, error)
141 // Lists all revisions of a deployment.
142 // Revisions are returned in descending order of revision creation time.
143 ListApiDeploymentRevisions(ctx context.Context, in *ListApiDeploymentRevisionsRequest, opts ...grpc.CallOption) (*ListApiDeploymentRevisionsResponse, error)
144 // Sets the current revision to a specified prior
145 // revision. Note that this creates a new revision with a new revision ID.
146 RollbackApiDeployment(ctx context.Context, in *RollbackApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error)
147 // Deletes a revision of a deployment.
148 DeleteApiDeploymentRevision(ctx context.Context, in *DeleteApiDeploymentRevisionRequest, opts ...grpc.CallOption) (*ApiDeployment, error)
149 // Returns matching artifacts.
150 ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error)
151 // Returns a specified artifact.
152 GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*Artifact, error)
153 // Returns the contents of a specified artifact.
154 // If artifacts are stored with GZip compression, the default behavior
155 // is to return the artifact uncompressed (the mime_type response field
156 // indicates the exact format returned).
157 GetArtifactContents(ctx context.Context, in *GetArtifactContentsRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
158 // Creates a specified artifact.
159 CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*Artifact, error)
160 // Used to replace a specified artifact.
161 ReplaceArtifact(ctx context.Context, in *ReplaceArtifactRequest, opts ...grpc.CallOption) (*Artifact, error)
162 // Removes a specified artifact.
163 DeleteArtifact(ctx context.Context, in *DeleteArtifactRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
164 }
165
166 type registryClient struct {
167 cc grpc.ClientConnInterface
168 }
169
170 func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient {
171 return &registryClient{cc}
172 }
173
174 func (c *registryClient) ListApis(ctx context.Context, in *ListApisRequest, opts ...grpc.CallOption) (*ListApisResponse, error) {
175 out := new(ListApisResponse)
176 err := c.cc.Invoke(ctx, Registry_ListApis_FullMethodName, in, out, opts...)
177 if err != nil {
178 return nil, err
179 }
180 return out, nil
181 }
182
183 func (c *registryClient) GetApi(ctx context.Context, in *GetApiRequest, opts ...grpc.CallOption) (*Api, error) {
184 out := new(Api)
185 err := c.cc.Invoke(ctx, Registry_GetApi_FullMethodName, in, out, opts...)
186 if err != nil {
187 return nil, err
188 }
189 return out, nil
190 }
191
192 func (c *registryClient) CreateApi(ctx context.Context, in *CreateApiRequest, opts ...grpc.CallOption) (*Api, error) {
193 out := new(Api)
194 err := c.cc.Invoke(ctx, Registry_CreateApi_FullMethodName, in, out, opts...)
195 if err != nil {
196 return nil, err
197 }
198 return out, nil
199 }
200
201 func (c *registryClient) UpdateApi(ctx context.Context, in *UpdateApiRequest, opts ...grpc.CallOption) (*Api, error) {
202 out := new(Api)
203 err := c.cc.Invoke(ctx, Registry_UpdateApi_FullMethodName, in, out, opts...)
204 if err != nil {
205 return nil, err
206 }
207 return out, nil
208 }
209
210 func (c *registryClient) DeleteApi(ctx context.Context, in *DeleteApiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
211 out := new(emptypb.Empty)
212 err := c.cc.Invoke(ctx, Registry_DeleteApi_FullMethodName, in, out, opts...)
213 if err != nil {
214 return nil, err
215 }
216 return out, nil
217 }
218
219 func (c *registryClient) ListApiVersions(ctx context.Context, in *ListApiVersionsRequest, opts ...grpc.CallOption) (*ListApiVersionsResponse, error) {
220 out := new(ListApiVersionsResponse)
221 err := c.cc.Invoke(ctx, Registry_ListApiVersions_FullMethodName, in, out, opts...)
222 if err != nil {
223 return nil, err
224 }
225 return out, nil
226 }
227
228 func (c *registryClient) GetApiVersion(ctx context.Context, in *GetApiVersionRequest, opts ...grpc.CallOption) (*ApiVersion, error) {
229 out := new(ApiVersion)
230 err := c.cc.Invoke(ctx, Registry_GetApiVersion_FullMethodName, in, out, opts...)
231 if err != nil {
232 return nil, err
233 }
234 return out, nil
235 }
236
237 func (c *registryClient) CreateApiVersion(ctx context.Context, in *CreateApiVersionRequest, opts ...grpc.CallOption) (*ApiVersion, error) {
238 out := new(ApiVersion)
239 err := c.cc.Invoke(ctx, Registry_CreateApiVersion_FullMethodName, in, out, opts...)
240 if err != nil {
241 return nil, err
242 }
243 return out, nil
244 }
245
246 func (c *registryClient) UpdateApiVersion(ctx context.Context, in *UpdateApiVersionRequest, opts ...grpc.CallOption) (*ApiVersion, error) {
247 out := new(ApiVersion)
248 err := c.cc.Invoke(ctx, Registry_UpdateApiVersion_FullMethodName, in, out, opts...)
249 if err != nil {
250 return nil, err
251 }
252 return out, nil
253 }
254
255 func (c *registryClient) DeleteApiVersion(ctx context.Context, in *DeleteApiVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
256 out := new(emptypb.Empty)
257 err := c.cc.Invoke(ctx, Registry_DeleteApiVersion_FullMethodName, in, out, opts...)
258 if err != nil {
259 return nil, err
260 }
261 return out, nil
262 }
263
264 func (c *registryClient) ListApiSpecs(ctx context.Context, in *ListApiSpecsRequest, opts ...grpc.CallOption) (*ListApiSpecsResponse, error) {
265 out := new(ListApiSpecsResponse)
266 err := c.cc.Invoke(ctx, Registry_ListApiSpecs_FullMethodName, in, out, opts...)
267 if err != nil {
268 return nil, err
269 }
270 return out, nil
271 }
272
273 func (c *registryClient) GetApiSpec(ctx context.Context, in *GetApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error) {
274 out := new(ApiSpec)
275 err := c.cc.Invoke(ctx, Registry_GetApiSpec_FullMethodName, in, out, opts...)
276 if err != nil {
277 return nil, err
278 }
279 return out, nil
280 }
281
282 func (c *registryClient) GetApiSpecContents(ctx context.Context, in *GetApiSpecContentsRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
283 out := new(httpbody.HttpBody)
284 err := c.cc.Invoke(ctx, Registry_GetApiSpecContents_FullMethodName, in, out, opts...)
285 if err != nil {
286 return nil, err
287 }
288 return out, nil
289 }
290
291 func (c *registryClient) CreateApiSpec(ctx context.Context, in *CreateApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error) {
292 out := new(ApiSpec)
293 err := c.cc.Invoke(ctx, Registry_CreateApiSpec_FullMethodName, in, out, opts...)
294 if err != nil {
295 return nil, err
296 }
297 return out, nil
298 }
299
300 func (c *registryClient) UpdateApiSpec(ctx context.Context, in *UpdateApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error) {
301 out := new(ApiSpec)
302 err := c.cc.Invoke(ctx, Registry_UpdateApiSpec_FullMethodName, in, out, opts...)
303 if err != nil {
304 return nil, err
305 }
306 return out, nil
307 }
308
309 func (c *registryClient) DeleteApiSpec(ctx context.Context, in *DeleteApiSpecRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
310 out := new(emptypb.Empty)
311 err := c.cc.Invoke(ctx, Registry_DeleteApiSpec_FullMethodName, in, out, opts...)
312 if err != nil {
313 return nil, err
314 }
315 return out, nil
316 }
317
318 func (c *registryClient) TagApiSpecRevision(ctx context.Context, in *TagApiSpecRevisionRequest, opts ...grpc.CallOption) (*ApiSpec, error) {
319 out := new(ApiSpec)
320 err := c.cc.Invoke(ctx, Registry_TagApiSpecRevision_FullMethodName, in, out, opts...)
321 if err != nil {
322 return nil, err
323 }
324 return out, nil
325 }
326
327 func (c *registryClient) ListApiSpecRevisions(ctx context.Context, in *ListApiSpecRevisionsRequest, opts ...grpc.CallOption) (*ListApiSpecRevisionsResponse, error) {
328 out := new(ListApiSpecRevisionsResponse)
329 err := c.cc.Invoke(ctx, Registry_ListApiSpecRevisions_FullMethodName, in, out, opts...)
330 if err != nil {
331 return nil, err
332 }
333 return out, nil
334 }
335
336 func (c *registryClient) RollbackApiSpec(ctx context.Context, in *RollbackApiSpecRequest, opts ...grpc.CallOption) (*ApiSpec, error) {
337 out := new(ApiSpec)
338 err := c.cc.Invoke(ctx, Registry_RollbackApiSpec_FullMethodName, in, out, opts...)
339 if err != nil {
340 return nil, err
341 }
342 return out, nil
343 }
344
345 func (c *registryClient) DeleteApiSpecRevision(ctx context.Context, in *DeleteApiSpecRevisionRequest, opts ...grpc.CallOption) (*ApiSpec, error) {
346 out := new(ApiSpec)
347 err := c.cc.Invoke(ctx, Registry_DeleteApiSpecRevision_FullMethodName, in, out, opts...)
348 if err != nil {
349 return nil, err
350 }
351 return out, nil
352 }
353
354 func (c *registryClient) ListApiDeployments(ctx context.Context, in *ListApiDeploymentsRequest, opts ...grpc.CallOption) (*ListApiDeploymentsResponse, error) {
355 out := new(ListApiDeploymentsResponse)
356 err := c.cc.Invoke(ctx, Registry_ListApiDeployments_FullMethodName, in, out, opts...)
357 if err != nil {
358 return nil, err
359 }
360 return out, nil
361 }
362
363 func (c *registryClient) GetApiDeployment(ctx context.Context, in *GetApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error) {
364 out := new(ApiDeployment)
365 err := c.cc.Invoke(ctx, Registry_GetApiDeployment_FullMethodName, in, out, opts...)
366 if err != nil {
367 return nil, err
368 }
369 return out, nil
370 }
371
372 func (c *registryClient) CreateApiDeployment(ctx context.Context, in *CreateApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error) {
373 out := new(ApiDeployment)
374 err := c.cc.Invoke(ctx, Registry_CreateApiDeployment_FullMethodName, in, out, opts...)
375 if err != nil {
376 return nil, err
377 }
378 return out, nil
379 }
380
381 func (c *registryClient) UpdateApiDeployment(ctx context.Context, in *UpdateApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error) {
382 out := new(ApiDeployment)
383 err := c.cc.Invoke(ctx, Registry_UpdateApiDeployment_FullMethodName, in, out, opts...)
384 if err != nil {
385 return nil, err
386 }
387 return out, nil
388 }
389
390 func (c *registryClient) DeleteApiDeployment(ctx context.Context, in *DeleteApiDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
391 out := new(emptypb.Empty)
392 err := c.cc.Invoke(ctx, Registry_DeleteApiDeployment_FullMethodName, in, out, opts...)
393 if err != nil {
394 return nil, err
395 }
396 return out, nil
397 }
398
399 func (c *registryClient) TagApiDeploymentRevision(ctx context.Context, in *TagApiDeploymentRevisionRequest, opts ...grpc.CallOption) (*ApiDeployment, error) {
400 out := new(ApiDeployment)
401 err := c.cc.Invoke(ctx, Registry_TagApiDeploymentRevision_FullMethodName, in, out, opts...)
402 if err != nil {
403 return nil, err
404 }
405 return out, nil
406 }
407
408 func (c *registryClient) ListApiDeploymentRevisions(ctx context.Context, in *ListApiDeploymentRevisionsRequest, opts ...grpc.CallOption) (*ListApiDeploymentRevisionsResponse, error) {
409 out := new(ListApiDeploymentRevisionsResponse)
410 err := c.cc.Invoke(ctx, Registry_ListApiDeploymentRevisions_FullMethodName, in, out, opts...)
411 if err != nil {
412 return nil, err
413 }
414 return out, nil
415 }
416
417 func (c *registryClient) RollbackApiDeployment(ctx context.Context, in *RollbackApiDeploymentRequest, opts ...grpc.CallOption) (*ApiDeployment, error) {
418 out := new(ApiDeployment)
419 err := c.cc.Invoke(ctx, Registry_RollbackApiDeployment_FullMethodName, in, out, opts...)
420 if err != nil {
421 return nil, err
422 }
423 return out, nil
424 }
425
426 func (c *registryClient) DeleteApiDeploymentRevision(ctx context.Context, in *DeleteApiDeploymentRevisionRequest, opts ...grpc.CallOption) (*ApiDeployment, error) {
427 out := new(ApiDeployment)
428 err := c.cc.Invoke(ctx, Registry_DeleteApiDeploymentRevision_FullMethodName, in, out, opts...)
429 if err != nil {
430 return nil, err
431 }
432 return out, nil
433 }
434
435 func (c *registryClient) ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) {
436 out := new(ListArtifactsResponse)
437 err := c.cc.Invoke(ctx, Registry_ListArtifacts_FullMethodName, in, out, opts...)
438 if err != nil {
439 return nil, err
440 }
441 return out, nil
442 }
443
444 func (c *registryClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*Artifact, error) {
445 out := new(Artifact)
446 err := c.cc.Invoke(ctx, Registry_GetArtifact_FullMethodName, in, out, opts...)
447 if err != nil {
448 return nil, err
449 }
450 return out, nil
451 }
452
453 func (c *registryClient) GetArtifactContents(ctx context.Context, in *GetArtifactContentsRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
454 out := new(httpbody.HttpBody)
455 err := c.cc.Invoke(ctx, Registry_GetArtifactContents_FullMethodName, in, out, opts...)
456 if err != nil {
457 return nil, err
458 }
459 return out, nil
460 }
461
462 func (c *registryClient) CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*Artifact, error) {
463 out := new(Artifact)
464 err := c.cc.Invoke(ctx, Registry_CreateArtifact_FullMethodName, in, out, opts...)
465 if err != nil {
466 return nil, err
467 }
468 return out, nil
469 }
470
471 func (c *registryClient) ReplaceArtifact(ctx context.Context, in *ReplaceArtifactRequest, opts ...grpc.CallOption) (*Artifact, error) {
472 out := new(Artifact)
473 err := c.cc.Invoke(ctx, Registry_ReplaceArtifact_FullMethodName, in, out, opts...)
474 if err != nil {
475 return nil, err
476 }
477 return out, nil
478 }
479
480 func (c *registryClient) DeleteArtifact(ctx context.Context, in *DeleteArtifactRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
481 out := new(emptypb.Empty)
482 err := c.cc.Invoke(ctx, Registry_DeleteArtifact_FullMethodName, in, out, opts...)
483 if err != nil {
484 return nil, err
485 }
486 return out, nil
487 }
488
489 // RegistryServer is the server API for Registry service.
490 // All implementations should embed UnimplementedRegistryServer
491 // for forward compatibility
492 type RegistryServer interface {
493 // Returns matching APIs.
494 ListApis(context.Context, *ListApisRequest) (*ListApisResponse, error)
495 // Returns a specified API.
496 GetApi(context.Context, *GetApiRequest) (*Api, error)
497 // Creates a specified API.
498 CreateApi(context.Context, *CreateApiRequest) (*Api, error)
499 // Used to modify a specified API.
500 UpdateApi(context.Context, *UpdateApiRequest) (*Api, error)
501 // Removes a specified API and all of the resources that it
502 // owns.
503 DeleteApi(context.Context, *DeleteApiRequest) (*emptypb.Empty, error)
504 // Returns matching versions.
505 ListApiVersions(context.Context, *ListApiVersionsRequest) (*ListApiVersionsResponse, error)
506 // Returns a specified version.
507 GetApiVersion(context.Context, *GetApiVersionRequest) (*ApiVersion, error)
508 // Creates a specified version.
509 CreateApiVersion(context.Context, *CreateApiVersionRequest) (*ApiVersion, error)
510 // Used to modify a specified version.
511 UpdateApiVersion(context.Context, *UpdateApiVersionRequest) (*ApiVersion, error)
512 // Removes a specified version and all of the resources that
513 // it owns.
514 DeleteApiVersion(context.Context, *DeleteApiVersionRequest) (*emptypb.Empty, error)
515 // Returns matching specs.
516 ListApiSpecs(context.Context, *ListApiSpecsRequest) (*ListApiSpecsResponse, error)
517 // Returns a specified spec.
518 GetApiSpec(context.Context, *GetApiSpecRequest) (*ApiSpec, error)
519 // Returns the contents of a specified spec.
520 // If specs are stored with GZip compression, the default behavior
521 // is to return the spec uncompressed (the mime_type response field
522 // indicates the exact format returned).
523 GetApiSpecContents(context.Context, *GetApiSpecContentsRequest) (*httpbody.HttpBody, error)
524 // Creates a specified spec.
525 CreateApiSpec(context.Context, *CreateApiSpecRequest) (*ApiSpec, error)
526 // Used to modify a specified spec.
527 UpdateApiSpec(context.Context, *UpdateApiSpecRequest) (*ApiSpec, error)
528 // Removes a specified spec, all revisions, and all child
529 // resources (e.g., artifacts).
530 DeleteApiSpec(context.Context, *DeleteApiSpecRequest) (*emptypb.Empty, error)
531 // Adds a tag to a specified revision of a spec.
532 TagApiSpecRevision(context.Context, *TagApiSpecRevisionRequest) (*ApiSpec, error)
533 // Lists all revisions of a spec.
534 // Revisions are returned in descending order of revision creation time.
535 ListApiSpecRevisions(context.Context, *ListApiSpecRevisionsRequest) (*ListApiSpecRevisionsResponse, error)
536 // Sets the current revision to a specified prior revision.
537 // Note that this creates a new revision with a new revision ID.
538 RollbackApiSpec(context.Context, *RollbackApiSpecRequest) (*ApiSpec, error)
539 // Deletes a revision of a spec.
540 DeleteApiSpecRevision(context.Context, *DeleteApiSpecRevisionRequest) (*ApiSpec, error)
541 // Returns matching deployments.
542 ListApiDeployments(context.Context, *ListApiDeploymentsRequest) (*ListApiDeploymentsResponse, error)
543 // Returns a specified deployment.
544 GetApiDeployment(context.Context, *GetApiDeploymentRequest) (*ApiDeployment, error)
545 // Creates a specified deployment.
546 CreateApiDeployment(context.Context, *CreateApiDeploymentRequest) (*ApiDeployment, error)
547 // Used to modify a specified deployment.
548 UpdateApiDeployment(context.Context, *UpdateApiDeploymentRequest) (*ApiDeployment, error)
549 // Removes a specified deployment, all revisions, and all
550 // child resources (e.g., artifacts).
551 DeleteApiDeployment(context.Context, *DeleteApiDeploymentRequest) (*emptypb.Empty, error)
552 // Adds a tag to a specified revision of a
553 // deployment.
554 TagApiDeploymentRevision(context.Context, *TagApiDeploymentRevisionRequest) (*ApiDeployment, error)
555 // Lists all revisions of a deployment.
556 // Revisions are returned in descending order of revision creation time.
557 ListApiDeploymentRevisions(context.Context, *ListApiDeploymentRevisionsRequest) (*ListApiDeploymentRevisionsResponse, error)
558 // Sets the current revision to a specified prior
559 // revision. Note that this creates a new revision with a new revision ID.
560 RollbackApiDeployment(context.Context, *RollbackApiDeploymentRequest) (*ApiDeployment, error)
561 // Deletes a revision of a deployment.
562 DeleteApiDeploymentRevision(context.Context, *DeleteApiDeploymentRevisionRequest) (*ApiDeployment, error)
563 // Returns matching artifacts.
564 ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error)
565 // Returns a specified artifact.
566 GetArtifact(context.Context, *GetArtifactRequest) (*Artifact, error)
567 // Returns the contents of a specified artifact.
568 // If artifacts are stored with GZip compression, the default behavior
569 // is to return the artifact uncompressed (the mime_type response field
570 // indicates the exact format returned).
571 GetArtifactContents(context.Context, *GetArtifactContentsRequest) (*httpbody.HttpBody, error)
572 // Creates a specified artifact.
573 CreateArtifact(context.Context, *CreateArtifactRequest) (*Artifact, error)
574 // Used to replace a specified artifact.
575 ReplaceArtifact(context.Context, *ReplaceArtifactRequest) (*Artifact, error)
576 // Removes a specified artifact.
577 DeleteArtifact(context.Context, *DeleteArtifactRequest) (*emptypb.Empty, error)
578 }
579
580 // UnimplementedRegistryServer should be embedded to have forward compatible implementations.
581 type UnimplementedRegistryServer struct {
582 }
583
584 func (UnimplementedRegistryServer) ListApis(context.Context, *ListApisRequest) (*ListApisResponse, error) {
585 return nil, status.Errorf(codes.Unimplemented, "method ListApis not implemented")
586 }
587 func (UnimplementedRegistryServer) GetApi(context.Context, *GetApiRequest) (*Api, error) {
588 return nil, status.Errorf(codes.Unimplemented, "method GetApi not implemented")
589 }
590 func (UnimplementedRegistryServer) CreateApi(context.Context, *CreateApiRequest) (*Api, error) {
591 return nil, status.Errorf(codes.Unimplemented, "method CreateApi not implemented")
592 }
593 func (UnimplementedRegistryServer) UpdateApi(context.Context, *UpdateApiRequest) (*Api, error) {
594 return nil, status.Errorf(codes.Unimplemented, "method UpdateApi not implemented")
595 }
596 func (UnimplementedRegistryServer) DeleteApi(context.Context, *DeleteApiRequest) (*emptypb.Empty, error) {
597 return nil, status.Errorf(codes.Unimplemented, "method DeleteApi not implemented")
598 }
599 func (UnimplementedRegistryServer) ListApiVersions(context.Context, *ListApiVersionsRequest) (*ListApiVersionsResponse, error) {
600 return nil, status.Errorf(codes.Unimplemented, "method ListApiVersions not implemented")
601 }
602 func (UnimplementedRegistryServer) GetApiVersion(context.Context, *GetApiVersionRequest) (*ApiVersion, error) {
603 return nil, status.Errorf(codes.Unimplemented, "method GetApiVersion not implemented")
604 }
605 func (UnimplementedRegistryServer) CreateApiVersion(context.Context, *CreateApiVersionRequest) (*ApiVersion, error) {
606 return nil, status.Errorf(codes.Unimplemented, "method CreateApiVersion not implemented")
607 }
608 func (UnimplementedRegistryServer) UpdateApiVersion(context.Context, *UpdateApiVersionRequest) (*ApiVersion, error) {
609 return nil, status.Errorf(codes.Unimplemented, "method UpdateApiVersion not implemented")
610 }
611 func (UnimplementedRegistryServer) DeleteApiVersion(context.Context, *DeleteApiVersionRequest) (*emptypb.Empty, error) {
612 return nil, status.Errorf(codes.Unimplemented, "method DeleteApiVersion not implemented")
613 }
614 func (UnimplementedRegistryServer) ListApiSpecs(context.Context, *ListApiSpecsRequest) (*ListApiSpecsResponse, error) {
615 return nil, status.Errorf(codes.Unimplemented, "method ListApiSpecs not implemented")
616 }
617 func (UnimplementedRegistryServer) GetApiSpec(context.Context, *GetApiSpecRequest) (*ApiSpec, error) {
618 return nil, status.Errorf(codes.Unimplemented, "method GetApiSpec not implemented")
619 }
620 func (UnimplementedRegistryServer) GetApiSpecContents(context.Context, *GetApiSpecContentsRequest) (*httpbody.HttpBody, error) {
621 return nil, status.Errorf(codes.Unimplemented, "method GetApiSpecContents not implemented")
622 }
623 func (UnimplementedRegistryServer) CreateApiSpec(context.Context, *CreateApiSpecRequest) (*ApiSpec, error) {
624 return nil, status.Errorf(codes.Unimplemented, "method CreateApiSpec not implemented")
625 }
626 func (UnimplementedRegistryServer) UpdateApiSpec(context.Context, *UpdateApiSpecRequest) (*ApiSpec, error) {
627 return nil, status.Errorf(codes.Unimplemented, "method UpdateApiSpec not implemented")
628 }
629 func (UnimplementedRegistryServer) DeleteApiSpec(context.Context, *DeleteApiSpecRequest) (*emptypb.Empty, error) {
630 return nil, status.Errorf(codes.Unimplemented, "method DeleteApiSpec not implemented")
631 }
632 func (UnimplementedRegistryServer) TagApiSpecRevision(context.Context, *TagApiSpecRevisionRequest) (*ApiSpec, error) {
633 return nil, status.Errorf(codes.Unimplemented, "method TagApiSpecRevision not implemented")
634 }
635 func (UnimplementedRegistryServer) ListApiSpecRevisions(context.Context, *ListApiSpecRevisionsRequest) (*ListApiSpecRevisionsResponse, error) {
636 return nil, status.Errorf(codes.Unimplemented, "method ListApiSpecRevisions not implemented")
637 }
638 func (UnimplementedRegistryServer) RollbackApiSpec(context.Context, *RollbackApiSpecRequest) (*ApiSpec, error) {
639 return nil, status.Errorf(codes.Unimplemented, "method RollbackApiSpec not implemented")
640 }
641 func (UnimplementedRegistryServer) DeleteApiSpecRevision(context.Context, *DeleteApiSpecRevisionRequest) (*ApiSpec, error) {
642 return nil, status.Errorf(codes.Unimplemented, "method DeleteApiSpecRevision not implemented")
643 }
644 func (UnimplementedRegistryServer) ListApiDeployments(context.Context, *ListApiDeploymentsRequest) (*ListApiDeploymentsResponse, error) {
645 return nil, status.Errorf(codes.Unimplemented, "method ListApiDeployments not implemented")
646 }
647 func (UnimplementedRegistryServer) GetApiDeployment(context.Context, *GetApiDeploymentRequest) (*ApiDeployment, error) {
648 return nil, status.Errorf(codes.Unimplemented, "method GetApiDeployment not implemented")
649 }
650 func (UnimplementedRegistryServer) CreateApiDeployment(context.Context, *CreateApiDeploymentRequest) (*ApiDeployment, error) {
651 return nil, status.Errorf(codes.Unimplemented, "method CreateApiDeployment not implemented")
652 }
653 func (UnimplementedRegistryServer) UpdateApiDeployment(context.Context, *UpdateApiDeploymentRequest) (*ApiDeployment, error) {
654 return nil, status.Errorf(codes.Unimplemented, "method UpdateApiDeployment not implemented")
655 }
656 func (UnimplementedRegistryServer) DeleteApiDeployment(context.Context, *DeleteApiDeploymentRequest) (*emptypb.Empty, error) {
657 return nil, status.Errorf(codes.Unimplemented, "method DeleteApiDeployment not implemented")
658 }
659 func (UnimplementedRegistryServer) TagApiDeploymentRevision(context.Context, *TagApiDeploymentRevisionRequest) (*ApiDeployment, error) {
660 return nil, status.Errorf(codes.Unimplemented, "method TagApiDeploymentRevision not implemented")
661 }
662 func (UnimplementedRegistryServer) ListApiDeploymentRevisions(context.Context, *ListApiDeploymentRevisionsRequest) (*ListApiDeploymentRevisionsResponse, error) {
663 return nil, status.Errorf(codes.Unimplemented, "method ListApiDeploymentRevisions not implemented")
664 }
665 func (UnimplementedRegistryServer) RollbackApiDeployment(context.Context, *RollbackApiDeploymentRequest) (*ApiDeployment, error) {
666 return nil, status.Errorf(codes.Unimplemented, "method RollbackApiDeployment not implemented")
667 }
668 func (UnimplementedRegistryServer) DeleteApiDeploymentRevision(context.Context, *DeleteApiDeploymentRevisionRequest) (*ApiDeployment, error) {
669 return nil, status.Errorf(codes.Unimplemented, "method DeleteApiDeploymentRevision not implemented")
670 }
671 func (UnimplementedRegistryServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) {
672 return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented")
673 }
674 func (UnimplementedRegistryServer) GetArtifact(context.Context, *GetArtifactRequest) (*Artifact, error) {
675 return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented")
676 }
677 func (UnimplementedRegistryServer) GetArtifactContents(context.Context, *GetArtifactContentsRequest) (*httpbody.HttpBody, error) {
678 return nil, status.Errorf(codes.Unimplemented, "method GetArtifactContents not implemented")
679 }
680 func (UnimplementedRegistryServer) CreateArtifact(context.Context, *CreateArtifactRequest) (*Artifact, error) {
681 return nil, status.Errorf(codes.Unimplemented, "method CreateArtifact not implemented")
682 }
683 func (UnimplementedRegistryServer) ReplaceArtifact(context.Context, *ReplaceArtifactRequest) (*Artifact, error) {
684 return nil, status.Errorf(codes.Unimplemented, "method ReplaceArtifact not implemented")
685 }
686 func (UnimplementedRegistryServer) DeleteArtifact(context.Context, *DeleteArtifactRequest) (*emptypb.Empty, error) {
687 return nil, status.Errorf(codes.Unimplemented, "method DeleteArtifact not implemented")
688 }
689
690 // UnsafeRegistryServer may be embedded to opt out of forward compatibility for this service.
691 // Use of this interface is not recommended, as added methods to RegistryServer will
692 // result in compilation errors.
693 type UnsafeRegistryServer interface {
694 mustEmbedUnimplementedRegistryServer()
695 }
696
697 func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer) {
698 s.RegisterService(&Registry_ServiceDesc, srv)
699 }
700
701 func _Registry_ListApis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
702 in := new(ListApisRequest)
703 if err := dec(in); err != nil {
704 return nil, err
705 }
706 if interceptor == nil {
707 return srv.(RegistryServer).ListApis(ctx, in)
708 }
709 info := &grpc.UnaryServerInfo{
710 Server: srv,
711 FullMethod: Registry_ListApis_FullMethodName,
712 }
713 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
714 return srv.(RegistryServer).ListApis(ctx, req.(*ListApisRequest))
715 }
716 return interceptor(ctx, in, info, handler)
717 }
718
719 func _Registry_GetApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
720 in := new(GetApiRequest)
721 if err := dec(in); err != nil {
722 return nil, err
723 }
724 if interceptor == nil {
725 return srv.(RegistryServer).GetApi(ctx, in)
726 }
727 info := &grpc.UnaryServerInfo{
728 Server: srv,
729 FullMethod: Registry_GetApi_FullMethodName,
730 }
731 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
732 return srv.(RegistryServer).GetApi(ctx, req.(*GetApiRequest))
733 }
734 return interceptor(ctx, in, info, handler)
735 }
736
737 func _Registry_CreateApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
738 in := new(CreateApiRequest)
739 if err := dec(in); err != nil {
740 return nil, err
741 }
742 if interceptor == nil {
743 return srv.(RegistryServer).CreateApi(ctx, in)
744 }
745 info := &grpc.UnaryServerInfo{
746 Server: srv,
747 FullMethod: Registry_CreateApi_FullMethodName,
748 }
749 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
750 return srv.(RegistryServer).CreateApi(ctx, req.(*CreateApiRequest))
751 }
752 return interceptor(ctx, in, info, handler)
753 }
754
755 func _Registry_UpdateApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
756 in := new(UpdateApiRequest)
757 if err := dec(in); err != nil {
758 return nil, err
759 }
760 if interceptor == nil {
761 return srv.(RegistryServer).UpdateApi(ctx, in)
762 }
763 info := &grpc.UnaryServerInfo{
764 Server: srv,
765 FullMethod: Registry_UpdateApi_FullMethodName,
766 }
767 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
768 return srv.(RegistryServer).UpdateApi(ctx, req.(*UpdateApiRequest))
769 }
770 return interceptor(ctx, in, info, handler)
771 }
772
773 func _Registry_DeleteApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
774 in := new(DeleteApiRequest)
775 if err := dec(in); err != nil {
776 return nil, err
777 }
778 if interceptor == nil {
779 return srv.(RegistryServer).DeleteApi(ctx, in)
780 }
781 info := &grpc.UnaryServerInfo{
782 Server: srv,
783 FullMethod: Registry_DeleteApi_FullMethodName,
784 }
785 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
786 return srv.(RegistryServer).DeleteApi(ctx, req.(*DeleteApiRequest))
787 }
788 return interceptor(ctx, in, info, handler)
789 }
790
791 func _Registry_ListApiVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
792 in := new(ListApiVersionsRequest)
793 if err := dec(in); err != nil {
794 return nil, err
795 }
796 if interceptor == nil {
797 return srv.(RegistryServer).ListApiVersions(ctx, in)
798 }
799 info := &grpc.UnaryServerInfo{
800 Server: srv,
801 FullMethod: Registry_ListApiVersions_FullMethodName,
802 }
803 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
804 return srv.(RegistryServer).ListApiVersions(ctx, req.(*ListApiVersionsRequest))
805 }
806 return interceptor(ctx, in, info, handler)
807 }
808
809 func _Registry_GetApiVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
810 in := new(GetApiVersionRequest)
811 if err := dec(in); err != nil {
812 return nil, err
813 }
814 if interceptor == nil {
815 return srv.(RegistryServer).GetApiVersion(ctx, in)
816 }
817 info := &grpc.UnaryServerInfo{
818 Server: srv,
819 FullMethod: Registry_GetApiVersion_FullMethodName,
820 }
821 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
822 return srv.(RegistryServer).GetApiVersion(ctx, req.(*GetApiVersionRequest))
823 }
824 return interceptor(ctx, in, info, handler)
825 }
826
827 func _Registry_CreateApiVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
828 in := new(CreateApiVersionRequest)
829 if err := dec(in); err != nil {
830 return nil, err
831 }
832 if interceptor == nil {
833 return srv.(RegistryServer).CreateApiVersion(ctx, in)
834 }
835 info := &grpc.UnaryServerInfo{
836 Server: srv,
837 FullMethod: Registry_CreateApiVersion_FullMethodName,
838 }
839 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
840 return srv.(RegistryServer).CreateApiVersion(ctx, req.(*CreateApiVersionRequest))
841 }
842 return interceptor(ctx, in, info, handler)
843 }
844
845 func _Registry_UpdateApiVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
846 in := new(UpdateApiVersionRequest)
847 if err := dec(in); err != nil {
848 return nil, err
849 }
850 if interceptor == nil {
851 return srv.(RegistryServer).UpdateApiVersion(ctx, in)
852 }
853 info := &grpc.UnaryServerInfo{
854 Server: srv,
855 FullMethod: Registry_UpdateApiVersion_FullMethodName,
856 }
857 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
858 return srv.(RegistryServer).UpdateApiVersion(ctx, req.(*UpdateApiVersionRequest))
859 }
860 return interceptor(ctx, in, info, handler)
861 }
862
863 func _Registry_DeleteApiVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
864 in := new(DeleteApiVersionRequest)
865 if err := dec(in); err != nil {
866 return nil, err
867 }
868 if interceptor == nil {
869 return srv.(RegistryServer).DeleteApiVersion(ctx, in)
870 }
871 info := &grpc.UnaryServerInfo{
872 Server: srv,
873 FullMethod: Registry_DeleteApiVersion_FullMethodName,
874 }
875 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
876 return srv.(RegistryServer).DeleteApiVersion(ctx, req.(*DeleteApiVersionRequest))
877 }
878 return interceptor(ctx, in, info, handler)
879 }
880
881 func _Registry_ListApiSpecs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
882 in := new(ListApiSpecsRequest)
883 if err := dec(in); err != nil {
884 return nil, err
885 }
886 if interceptor == nil {
887 return srv.(RegistryServer).ListApiSpecs(ctx, in)
888 }
889 info := &grpc.UnaryServerInfo{
890 Server: srv,
891 FullMethod: Registry_ListApiSpecs_FullMethodName,
892 }
893 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
894 return srv.(RegistryServer).ListApiSpecs(ctx, req.(*ListApiSpecsRequest))
895 }
896 return interceptor(ctx, in, info, handler)
897 }
898
899 func _Registry_GetApiSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
900 in := new(GetApiSpecRequest)
901 if err := dec(in); err != nil {
902 return nil, err
903 }
904 if interceptor == nil {
905 return srv.(RegistryServer).GetApiSpec(ctx, in)
906 }
907 info := &grpc.UnaryServerInfo{
908 Server: srv,
909 FullMethod: Registry_GetApiSpec_FullMethodName,
910 }
911 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
912 return srv.(RegistryServer).GetApiSpec(ctx, req.(*GetApiSpecRequest))
913 }
914 return interceptor(ctx, in, info, handler)
915 }
916
917 func _Registry_GetApiSpecContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
918 in := new(GetApiSpecContentsRequest)
919 if err := dec(in); err != nil {
920 return nil, err
921 }
922 if interceptor == nil {
923 return srv.(RegistryServer).GetApiSpecContents(ctx, in)
924 }
925 info := &grpc.UnaryServerInfo{
926 Server: srv,
927 FullMethod: Registry_GetApiSpecContents_FullMethodName,
928 }
929 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
930 return srv.(RegistryServer).GetApiSpecContents(ctx, req.(*GetApiSpecContentsRequest))
931 }
932 return interceptor(ctx, in, info, handler)
933 }
934
935 func _Registry_CreateApiSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
936 in := new(CreateApiSpecRequest)
937 if err := dec(in); err != nil {
938 return nil, err
939 }
940 if interceptor == nil {
941 return srv.(RegistryServer).CreateApiSpec(ctx, in)
942 }
943 info := &grpc.UnaryServerInfo{
944 Server: srv,
945 FullMethod: Registry_CreateApiSpec_FullMethodName,
946 }
947 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
948 return srv.(RegistryServer).CreateApiSpec(ctx, req.(*CreateApiSpecRequest))
949 }
950 return interceptor(ctx, in, info, handler)
951 }
952
953 func _Registry_UpdateApiSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
954 in := new(UpdateApiSpecRequest)
955 if err := dec(in); err != nil {
956 return nil, err
957 }
958 if interceptor == nil {
959 return srv.(RegistryServer).UpdateApiSpec(ctx, in)
960 }
961 info := &grpc.UnaryServerInfo{
962 Server: srv,
963 FullMethod: Registry_UpdateApiSpec_FullMethodName,
964 }
965 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
966 return srv.(RegistryServer).UpdateApiSpec(ctx, req.(*UpdateApiSpecRequest))
967 }
968 return interceptor(ctx, in, info, handler)
969 }
970
971 func _Registry_DeleteApiSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
972 in := new(DeleteApiSpecRequest)
973 if err := dec(in); err != nil {
974 return nil, err
975 }
976 if interceptor == nil {
977 return srv.(RegistryServer).DeleteApiSpec(ctx, in)
978 }
979 info := &grpc.UnaryServerInfo{
980 Server: srv,
981 FullMethod: Registry_DeleteApiSpec_FullMethodName,
982 }
983 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
984 return srv.(RegistryServer).DeleteApiSpec(ctx, req.(*DeleteApiSpecRequest))
985 }
986 return interceptor(ctx, in, info, handler)
987 }
988
989 func _Registry_TagApiSpecRevision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
990 in := new(TagApiSpecRevisionRequest)
991 if err := dec(in); err != nil {
992 return nil, err
993 }
994 if interceptor == nil {
995 return srv.(RegistryServer).TagApiSpecRevision(ctx, in)
996 }
997 info := &grpc.UnaryServerInfo{
998 Server: srv,
999 FullMethod: Registry_TagApiSpecRevision_FullMethodName,
1000 }
1001 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1002 return srv.(RegistryServer).TagApiSpecRevision(ctx, req.(*TagApiSpecRevisionRequest))
1003 }
1004 return interceptor(ctx, in, info, handler)
1005 }
1006
1007 func _Registry_ListApiSpecRevisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1008 in := new(ListApiSpecRevisionsRequest)
1009 if err := dec(in); err != nil {
1010 return nil, err
1011 }
1012 if interceptor == nil {
1013 return srv.(RegistryServer).ListApiSpecRevisions(ctx, in)
1014 }
1015 info := &grpc.UnaryServerInfo{
1016 Server: srv,
1017 FullMethod: Registry_ListApiSpecRevisions_FullMethodName,
1018 }
1019 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1020 return srv.(RegistryServer).ListApiSpecRevisions(ctx, req.(*ListApiSpecRevisionsRequest))
1021 }
1022 return interceptor(ctx, in, info, handler)
1023 }
1024
1025 func _Registry_RollbackApiSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1026 in := new(RollbackApiSpecRequest)
1027 if err := dec(in); err != nil {
1028 return nil, err
1029 }
1030 if interceptor == nil {
1031 return srv.(RegistryServer).RollbackApiSpec(ctx, in)
1032 }
1033 info := &grpc.UnaryServerInfo{
1034 Server: srv,
1035 FullMethod: Registry_RollbackApiSpec_FullMethodName,
1036 }
1037 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1038 return srv.(RegistryServer).RollbackApiSpec(ctx, req.(*RollbackApiSpecRequest))
1039 }
1040 return interceptor(ctx, in, info, handler)
1041 }
1042
1043 func _Registry_DeleteApiSpecRevision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1044 in := new(DeleteApiSpecRevisionRequest)
1045 if err := dec(in); err != nil {
1046 return nil, err
1047 }
1048 if interceptor == nil {
1049 return srv.(RegistryServer).DeleteApiSpecRevision(ctx, in)
1050 }
1051 info := &grpc.UnaryServerInfo{
1052 Server: srv,
1053 FullMethod: Registry_DeleteApiSpecRevision_FullMethodName,
1054 }
1055 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1056 return srv.(RegistryServer).DeleteApiSpecRevision(ctx, req.(*DeleteApiSpecRevisionRequest))
1057 }
1058 return interceptor(ctx, in, info, handler)
1059 }
1060
1061 func _Registry_ListApiDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1062 in := new(ListApiDeploymentsRequest)
1063 if err := dec(in); err != nil {
1064 return nil, err
1065 }
1066 if interceptor == nil {
1067 return srv.(RegistryServer).ListApiDeployments(ctx, in)
1068 }
1069 info := &grpc.UnaryServerInfo{
1070 Server: srv,
1071 FullMethod: Registry_ListApiDeployments_FullMethodName,
1072 }
1073 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1074 return srv.(RegistryServer).ListApiDeployments(ctx, req.(*ListApiDeploymentsRequest))
1075 }
1076 return interceptor(ctx, in, info, handler)
1077 }
1078
1079 func _Registry_GetApiDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1080 in := new(GetApiDeploymentRequest)
1081 if err := dec(in); err != nil {
1082 return nil, err
1083 }
1084 if interceptor == nil {
1085 return srv.(RegistryServer).GetApiDeployment(ctx, in)
1086 }
1087 info := &grpc.UnaryServerInfo{
1088 Server: srv,
1089 FullMethod: Registry_GetApiDeployment_FullMethodName,
1090 }
1091 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1092 return srv.(RegistryServer).GetApiDeployment(ctx, req.(*GetApiDeploymentRequest))
1093 }
1094 return interceptor(ctx, in, info, handler)
1095 }
1096
1097 func _Registry_CreateApiDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1098 in := new(CreateApiDeploymentRequest)
1099 if err := dec(in); err != nil {
1100 return nil, err
1101 }
1102 if interceptor == nil {
1103 return srv.(RegistryServer).CreateApiDeployment(ctx, in)
1104 }
1105 info := &grpc.UnaryServerInfo{
1106 Server: srv,
1107 FullMethod: Registry_CreateApiDeployment_FullMethodName,
1108 }
1109 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1110 return srv.(RegistryServer).CreateApiDeployment(ctx, req.(*CreateApiDeploymentRequest))
1111 }
1112 return interceptor(ctx, in, info, handler)
1113 }
1114
1115 func _Registry_UpdateApiDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1116 in := new(UpdateApiDeploymentRequest)
1117 if err := dec(in); err != nil {
1118 return nil, err
1119 }
1120 if interceptor == nil {
1121 return srv.(RegistryServer).UpdateApiDeployment(ctx, in)
1122 }
1123 info := &grpc.UnaryServerInfo{
1124 Server: srv,
1125 FullMethod: Registry_UpdateApiDeployment_FullMethodName,
1126 }
1127 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1128 return srv.(RegistryServer).UpdateApiDeployment(ctx, req.(*UpdateApiDeploymentRequest))
1129 }
1130 return interceptor(ctx, in, info, handler)
1131 }
1132
1133 func _Registry_DeleteApiDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1134 in := new(DeleteApiDeploymentRequest)
1135 if err := dec(in); err != nil {
1136 return nil, err
1137 }
1138 if interceptor == nil {
1139 return srv.(RegistryServer).DeleteApiDeployment(ctx, in)
1140 }
1141 info := &grpc.UnaryServerInfo{
1142 Server: srv,
1143 FullMethod: Registry_DeleteApiDeployment_FullMethodName,
1144 }
1145 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1146 return srv.(RegistryServer).DeleteApiDeployment(ctx, req.(*DeleteApiDeploymentRequest))
1147 }
1148 return interceptor(ctx, in, info, handler)
1149 }
1150
1151 func _Registry_TagApiDeploymentRevision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1152 in := new(TagApiDeploymentRevisionRequest)
1153 if err := dec(in); err != nil {
1154 return nil, err
1155 }
1156 if interceptor == nil {
1157 return srv.(RegistryServer).TagApiDeploymentRevision(ctx, in)
1158 }
1159 info := &grpc.UnaryServerInfo{
1160 Server: srv,
1161 FullMethod: Registry_TagApiDeploymentRevision_FullMethodName,
1162 }
1163 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1164 return srv.(RegistryServer).TagApiDeploymentRevision(ctx, req.(*TagApiDeploymentRevisionRequest))
1165 }
1166 return interceptor(ctx, in, info, handler)
1167 }
1168
1169 func _Registry_ListApiDeploymentRevisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1170 in := new(ListApiDeploymentRevisionsRequest)
1171 if err := dec(in); err != nil {
1172 return nil, err
1173 }
1174 if interceptor == nil {
1175 return srv.(RegistryServer).ListApiDeploymentRevisions(ctx, in)
1176 }
1177 info := &grpc.UnaryServerInfo{
1178 Server: srv,
1179 FullMethod: Registry_ListApiDeploymentRevisions_FullMethodName,
1180 }
1181 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1182 return srv.(RegistryServer).ListApiDeploymentRevisions(ctx, req.(*ListApiDeploymentRevisionsRequest))
1183 }
1184 return interceptor(ctx, in, info, handler)
1185 }
1186
1187 func _Registry_RollbackApiDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1188 in := new(RollbackApiDeploymentRequest)
1189 if err := dec(in); err != nil {
1190 return nil, err
1191 }
1192 if interceptor == nil {
1193 return srv.(RegistryServer).RollbackApiDeployment(ctx, in)
1194 }
1195 info := &grpc.UnaryServerInfo{
1196 Server: srv,
1197 FullMethod: Registry_RollbackApiDeployment_FullMethodName,
1198 }
1199 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1200 return srv.(RegistryServer).RollbackApiDeployment(ctx, req.(*RollbackApiDeploymentRequest))
1201 }
1202 return interceptor(ctx, in, info, handler)
1203 }
1204
1205 func _Registry_DeleteApiDeploymentRevision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1206 in := new(DeleteApiDeploymentRevisionRequest)
1207 if err := dec(in); err != nil {
1208 return nil, err
1209 }
1210 if interceptor == nil {
1211 return srv.(RegistryServer).DeleteApiDeploymentRevision(ctx, in)
1212 }
1213 info := &grpc.UnaryServerInfo{
1214 Server: srv,
1215 FullMethod: Registry_DeleteApiDeploymentRevision_FullMethodName,
1216 }
1217 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1218 return srv.(RegistryServer).DeleteApiDeploymentRevision(ctx, req.(*DeleteApiDeploymentRevisionRequest))
1219 }
1220 return interceptor(ctx, in, info, handler)
1221 }
1222
1223 func _Registry_ListArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1224 in := new(ListArtifactsRequest)
1225 if err := dec(in); err != nil {
1226 return nil, err
1227 }
1228 if interceptor == nil {
1229 return srv.(RegistryServer).ListArtifacts(ctx, in)
1230 }
1231 info := &grpc.UnaryServerInfo{
1232 Server: srv,
1233 FullMethod: Registry_ListArtifacts_FullMethodName,
1234 }
1235 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1236 return srv.(RegistryServer).ListArtifacts(ctx, req.(*ListArtifactsRequest))
1237 }
1238 return interceptor(ctx, in, info, handler)
1239 }
1240
1241 func _Registry_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1242 in := new(GetArtifactRequest)
1243 if err := dec(in); err != nil {
1244 return nil, err
1245 }
1246 if interceptor == nil {
1247 return srv.(RegistryServer).GetArtifact(ctx, in)
1248 }
1249 info := &grpc.UnaryServerInfo{
1250 Server: srv,
1251 FullMethod: Registry_GetArtifact_FullMethodName,
1252 }
1253 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1254 return srv.(RegistryServer).GetArtifact(ctx, req.(*GetArtifactRequest))
1255 }
1256 return interceptor(ctx, in, info, handler)
1257 }
1258
1259 func _Registry_GetArtifactContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1260 in := new(GetArtifactContentsRequest)
1261 if err := dec(in); err != nil {
1262 return nil, err
1263 }
1264 if interceptor == nil {
1265 return srv.(RegistryServer).GetArtifactContents(ctx, in)
1266 }
1267 info := &grpc.UnaryServerInfo{
1268 Server: srv,
1269 FullMethod: Registry_GetArtifactContents_FullMethodName,
1270 }
1271 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1272 return srv.(RegistryServer).GetArtifactContents(ctx, req.(*GetArtifactContentsRequest))
1273 }
1274 return interceptor(ctx, in, info, handler)
1275 }
1276
1277 func _Registry_CreateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1278 in := new(CreateArtifactRequest)
1279 if err := dec(in); err != nil {
1280 return nil, err
1281 }
1282 if interceptor == nil {
1283 return srv.(RegistryServer).CreateArtifact(ctx, in)
1284 }
1285 info := &grpc.UnaryServerInfo{
1286 Server: srv,
1287 FullMethod: Registry_CreateArtifact_FullMethodName,
1288 }
1289 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1290 return srv.(RegistryServer).CreateArtifact(ctx, req.(*CreateArtifactRequest))
1291 }
1292 return interceptor(ctx, in, info, handler)
1293 }
1294
1295 func _Registry_ReplaceArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1296 in := new(ReplaceArtifactRequest)
1297 if err := dec(in); err != nil {
1298 return nil, err
1299 }
1300 if interceptor == nil {
1301 return srv.(RegistryServer).ReplaceArtifact(ctx, in)
1302 }
1303 info := &grpc.UnaryServerInfo{
1304 Server: srv,
1305 FullMethod: Registry_ReplaceArtifact_FullMethodName,
1306 }
1307 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1308 return srv.(RegistryServer).ReplaceArtifact(ctx, req.(*ReplaceArtifactRequest))
1309 }
1310 return interceptor(ctx, in, info, handler)
1311 }
1312
1313 func _Registry_DeleteArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1314 in := new(DeleteArtifactRequest)
1315 if err := dec(in); err != nil {
1316 return nil, err
1317 }
1318 if interceptor == nil {
1319 return srv.(RegistryServer).DeleteArtifact(ctx, in)
1320 }
1321 info := &grpc.UnaryServerInfo{
1322 Server: srv,
1323 FullMethod: Registry_DeleteArtifact_FullMethodName,
1324 }
1325 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1326 return srv.(RegistryServer).DeleteArtifact(ctx, req.(*DeleteArtifactRequest))
1327 }
1328 return interceptor(ctx, in, info, handler)
1329 }
1330
1331 // Registry_ServiceDesc is the grpc.ServiceDesc for Registry service.
1332 // It's only intended for direct use with grpc.RegisterService,
1333 // and not to be introspected or modified (even as a copy)
1334 var Registry_ServiceDesc = grpc.ServiceDesc{
1335 ServiceName: "google.cloud.apigeeregistry.v1.Registry",
1336 HandlerType: (*RegistryServer)(nil),
1337 Methods: []grpc.MethodDesc{
1338 {
1339 MethodName: "ListApis",
1340 Handler: _Registry_ListApis_Handler,
1341 },
1342 {
1343 MethodName: "GetApi",
1344 Handler: _Registry_GetApi_Handler,
1345 },
1346 {
1347 MethodName: "CreateApi",
1348 Handler: _Registry_CreateApi_Handler,
1349 },
1350 {
1351 MethodName: "UpdateApi",
1352 Handler: _Registry_UpdateApi_Handler,
1353 },
1354 {
1355 MethodName: "DeleteApi",
1356 Handler: _Registry_DeleteApi_Handler,
1357 },
1358 {
1359 MethodName: "ListApiVersions",
1360 Handler: _Registry_ListApiVersions_Handler,
1361 },
1362 {
1363 MethodName: "GetApiVersion",
1364 Handler: _Registry_GetApiVersion_Handler,
1365 },
1366 {
1367 MethodName: "CreateApiVersion",
1368 Handler: _Registry_CreateApiVersion_Handler,
1369 },
1370 {
1371 MethodName: "UpdateApiVersion",
1372 Handler: _Registry_UpdateApiVersion_Handler,
1373 },
1374 {
1375 MethodName: "DeleteApiVersion",
1376 Handler: _Registry_DeleteApiVersion_Handler,
1377 },
1378 {
1379 MethodName: "ListApiSpecs",
1380 Handler: _Registry_ListApiSpecs_Handler,
1381 },
1382 {
1383 MethodName: "GetApiSpec",
1384 Handler: _Registry_GetApiSpec_Handler,
1385 },
1386 {
1387 MethodName: "GetApiSpecContents",
1388 Handler: _Registry_GetApiSpecContents_Handler,
1389 },
1390 {
1391 MethodName: "CreateApiSpec",
1392 Handler: _Registry_CreateApiSpec_Handler,
1393 },
1394 {
1395 MethodName: "UpdateApiSpec",
1396 Handler: _Registry_UpdateApiSpec_Handler,
1397 },
1398 {
1399 MethodName: "DeleteApiSpec",
1400 Handler: _Registry_DeleteApiSpec_Handler,
1401 },
1402 {
1403 MethodName: "TagApiSpecRevision",
1404 Handler: _Registry_TagApiSpecRevision_Handler,
1405 },
1406 {
1407 MethodName: "ListApiSpecRevisions",
1408 Handler: _Registry_ListApiSpecRevisions_Handler,
1409 },
1410 {
1411 MethodName: "RollbackApiSpec",
1412 Handler: _Registry_RollbackApiSpec_Handler,
1413 },
1414 {
1415 MethodName: "DeleteApiSpecRevision",
1416 Handler: _Registry_DeleteApiSpecRevision_Handler,
1417 },
1418 {
1419 MethodName: "ListApiDeployments",
1420 Handler: _Registry_ListApiDeployments_Handler,
1421 },
1422 {
1423 MethodName: "GetApiDeployment",
1424 Handler: _Registry_GetApiDeployment_Handler,
1425 },
1426 {
1427 MethodName: "CreateApiDeployment",
1428 Handler: _Registry_CreateApiDeployment_Handler,
1429 },
1430 {
1431 MethodName: "UpdateApiDeployment",
1432 Handler: _Registry_UpdateApiDeployment_Handler,
1433 },
1434 {
1435 MethodName: "DeleteApiDeployment",
1436 Handler: _Registry_DeleteApiDeployment_Handler,
1437 },
1438 {
1439 MethodName: "TagApiDeploymentRevision",
1440 Handler: _Registry_TagApiDeploymentRevision_Handler,
1441 },
1442 {
1443 MethodName: "ListApiDeploymentRevisions",
1444 Handler: _Registry_ListApiDeploymentRevisions_Handler,
1445 },
1446 {
1447 MethodName: "RollbackApiDeployment",
1448 Handler: _Registry_RollbackApiDeployment_Handler,
1449 },
1450 {
1451 MethodName: "DeleteApiDeploymentRevision",
1452 Handler: _Registry_DeleteApiDeploymentRevision_Handler,
1453 },
1454 {
1455 MethodName: "ListArtifacts",
1456 Handler: _Registry_ListArtifacts_Handler,
1457 },
1458 {
1459 MethodName: "GetArtifact",
1460 Handler: _Registry_GetArtifact_Handler,
1461 },
1462 {
1463 MethodName: "GetArtifactContents",
1464 Handler: _Registry_GetArtifactContents_Handler,
1465 },
1466 {
1467 MethodName: "CreateArtifact",
1468 Handler: _Registry_CreateArtifact_Handler,
1469 },
1470 {
1471 MethodName: "ReplaceArtifact",
1472 Handler: _Registry_ReplaceArtifact_Handler,
1473 },
1474 {
1475 MethodName: "DeleteArtifact",
1476 Handler: _Registry_DeleteArtifact_Handler,
1477 },
1478 },
1479 Streams: []grpc.StreamDesc{},
1480 Metadata: "google/cloud/apigeeregistry/v1/registry_service.proto",
1481 }