Debian Codegraph @

datacatalog/apiv1beta1/datacatalogpb/datacatalog_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/datacatalog/v1beta1/datacatalog.proto
20
21 package datacatalogpb
22
23 import (
24 iampb "cloud.google.com/go/iam/apiv1/iampb"
25 context "context"
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 DataCatalog_SearchCatalog_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/SearchCatalog"
39 DataCatalog_CreateEntryGroup_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/CreateEntryGroup"
40 DataCatalog_UpdateEntryGroup_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/UpdateEntryGroup"
41 DataCatalog_GetEntryGroup_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/GetEntryGroup"
42 DataCatalog_DeleteEntryGroup_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/DeleteEntryGroup"
43 DataCatalog_ListEntryGroups_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/ListEntryGroups"
44 DataCatalog_CreateEntry_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/CreateEntry"
45 DataCatalog_UpdateEntry_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/UpdateEntry"
46 DataCatalog_DeleteEntry_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/DeleteEntry"
47 DataCatalog_GetEntry_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/GetEntry"
48 DataCatalog_LookupEntry_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/LookupEntry"
49 DataCatalog_ListEntries_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/ListEntries"
50 DataCatalog_CreateTagTemplate_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/CreateTagTemplate"
51 DataCatalog_GetTagTemplate_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/GetTagTemplate"
52 DataCatalog_UpdateTagTemplate_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTagTemplate"
53 DataCatalog_DeleteTagTemplate_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTagTemplate"
54 DataCatalog_CreateTagTemplateField_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/CreateTagTemplateField"
55 DataCatalog_UpdateTagTemplateField_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTagTemplateField"
56 DataCatalog_RenameTagTemplateField_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/RenameTagTemplateField"
57 DataCatalog_RenameTagTemplateFieldEnumValue_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/RenameTagTemplateFieldEnumValue"
58 DataCatalog_DeleteTagTemplateField_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTagTemplateField"
59 DataCatalog_CreateTag_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/CreateTag"
60 DataCatalog_UpdateTag_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTag"
61 DataCatalog_DeleteTag_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTag"
62 DataCatalog_ListTags_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/ListTags"
63 DataCatalog_SetIamPolicy_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/SetIamPolicy"
64 DataCatalog_GetIamPolicy_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/GetIamPolicy"
65 DataCatalog_TestIamPermissions_FullMethodName = "/google.cloud.datacatalog.v1beta1.DataCatalog/TestIamPermissions"
66 )
67
68 // DataCatalogClient is the client API for DataCatalog service.
69 //
70 // 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.
71 //
72 // Deprecated: Do not use.
73 type DataCatalogClient interface {
74 // Deprecated: Do not use.
75 // Searches Data Catalog for multiple resources like entries, tags that
76 // match a query.
77 //
78 // This is a custom method
79 // (https://cloud.google.com/apis/design/custom_methods) and does not return
80 // the complete resource, only the resource identifier and high level
81 // fields. Clients can subsequently call `Get` methods.
82 //
83 // Note that Data Catalog search queries do not guarantee full recall. Query
84 // results that match your query may not be returned, even in subsequent
85 // result pages. Also note that results returned (and not returned) can vary
86 // across repeated search queries.
87 //
88 // See [Data Catalog Search
89 // Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
90 // for more information.
91 SearchCatalog(ctx context.Context, in *SearchCatalogRequest, opts ...grpc.CallOption) (*SearchCatalogResponse, error)
92 // Deprecated: Do not use.
93 // A maximum of 10,000 entry groups may be created per organization across all
94 // locations.
95 //
96 // Users should enable the Data Catalog API in the project identified by
97 // the `parent` parameter (see [Data Catalog Resource Project]
98 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
99 // more information).
100 CreateEntryGroup(ctx context.Context, in *CreateEntryGroupRequest, opts ...grpc.CallOption) (*EntryGroup, error)
101 // Deprecated: Do not use.
102 // Updates an EntryGroup. The user should enable the Data Catalog API in the
103 // project identified by the `entry_group.name` parameter (see [Data Catalog
104 // Resource Project]
105 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
106 // more information).
107 UpdateEntryGroup(ctx context.Context, in *UpdateEntryGroupRequest, opts ...grpc.CallOption) (*EntryGroup, error)
108 // Deprecated: Do not use.
109 // Gets an EntryGroup.
110 GetEntryGroup(ctx context.Context, in *GetEntryGroupRequest, opts ...grpc.CallOption) (*EntryGroup, error)
111 // Deprecated: Do not use.
112 // Deletes an EntryGroup. Only entry groups that do not contain entries can be
113 // deleted. Users should enable the Data Catalog API in the project
114 // identified by the `name` parameter (see [Data Catalog Resource Project]
115 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
116 // more information).
117 DeleteEntryGroup(ctx context.Context, in *DeleteEntryGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
118 // Deprecated: Do not use.
119 // Lists entry groups.
120 ListEntryGroups(ctx context.Context, in *ListEntryGroupsRequest, opts ...grpc.CallOption) (*ListEntryGroupsResponse, error)
121 // Deprecated: Do not use.
122 // Creates an entry. Only entries of 'FILESET' type or user-specified type can
123 // be created.
124 //
125 // Users should enable the Data Catalog API in the project identified by
126 // the `parent` parameter (see [Data Catalog Resource Project]
127 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
128 // more information).
129 //
130 // A maximum of 100,000 entries may be created per entry group.
131 CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*Entry, error)
132 // Deprecated: Do not use.
133 // Updates an existing entry.
134 // Users should enable the Data Catalog API in the project identified by
135 // the `entry.name` parameter (see [Data Catalog Resource Project]
136 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
137 // more information).
138 UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*Entry, error)
139 // Deprecated: Do not use.
140 // Deletes an existing entry. Only entries created through
141 // [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
142 // method can be deleted.
143 // Users should enable the Data Catalog API in the project identified by
144 // the `name` parameter (see [Data Catalog Resource Project]
145 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
146 // more information).
147 DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
148 // Deprecated: Do not use.
149 // Gets an entry.
150 GetEntry(ctx context.Context, in *GetEntryRequest, opts ...grpc.CallOption) (*Entry, error)
151 // Deprecated: Do not use.
152 // Get an entry by target resource name. This method allows clients to use
153 // the resource name from the source Google Cloud Platform service to get the
154 // Data Catalog Entry.
155 LookupEntry(ctx context.Context, in *LookupEntryRequest, opts ...grpc.CallOption) (*Entry, error)
156 // Deprecated: Do not use.
157 // Lists entries.
158 ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error)
159 // Deprecated: Do not use.
160 // Creates a tag template. The user should enable the Data Catalog API in
161 // the project identified by the `parent` parameter (see [Data Catalog
162 // Resource
163 // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
164 // for more information).
165 CreateTagTemplate(ctx context.Context, in *CreateTagTemplateRequest, opts ...grpc.CallOption) (*TagTemplate, error)
166 // Deprecated: Do not use.
167 // Gets a tag template.
168 GetTagTemplate(ctx context.Context, in *GetTagTemplateRequest, opts ...grpc.CallOption) (*TagTemplate, error)
169 // Deprecated: Do not use.
170 // Updates a tag template. This method cannot be used to update the fields of
171 // a template. The tag template fields are represented as separate resources
172 // and should be updated using their own create/update/delete methods.
173 // Users should enable the Data Catalog API in the project identified by
174 // the `tag_template.name` parameter (see [Data Catalog Resource Project]
175 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
176 // more information).
177 UpdateTagTemplate(ctx context.Context, in *UpdateTagTemplateRequest, opts ...grpc.CallOption) (*TagTemplate, error)
178 // Deprecated: Do not use.
179 // Deletes a tag template and all tags using the template.
180 // Users should enable the Data Catalog API in the project identified by
181 // the `name` parameter (see [Data Catalog Resource Project]
182 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
183 // more information).
184 DeleteTagTemplate(ctx context.Context, in *DeleteTagTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
185 // Deprecated: Do not use.
186 // Creates a field in a tag template. The user should enable the Data Catalog
187 // API in the project identified by the `parent` parameter (see
188 // [Data Catalog Resource
189 // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
190 // for more information).
191 CreateTagTemplateField(ctx context.Context, in *CreateTagTemplateFieldRequest, opts ...grpc.CallOption) (*TagTemplateField, error)
192 // Deprecated: Do not use.
193 // Updates a field in a tag template. This method cannot be used to update the
194 // field type. Users should enable the Data Catalog API in the project
195 // identified by the `name` parameter (see [Data Catalog Resource Project]
196 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
197 // more information).
198 UpdateTagTemplateField(ctx context.Context, in *UpdateTagTemplateFieldRequest, opts ...grpc.CallOption) (*TagTemplateField, error)
199 // Deprecated: Do not use.
200 // Renames a field in a tag template. The user should enable the Data Catalog
201 // API in the project identified by the `name` parameter (see [Data Catalog
202 // Resource
203 // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
204 // for more information).
205 RenameTagTemplateField(ctx context.Context, in *RenameTagTemplateFieldRequest, opts ...grpc.CallOption) (*TagTemplateField, error)
206 // Deprecated: Do not use.
207 // Renames an enum value in a tag template. The enum values have to be unique
208 // within one enum field. Thus, an enum value cannot be renamed with a name
209 // used in any other enum value within the same enum field.
210 RenameTagTemplateFieldEnumValue(ctx context.Context, in *RenameTagTemplateFieldEnumValueRequest, opts ...grpc.CallOption) (*TagTemplateField, error)
211 // Deprecated: Do not use.
212 // Deletes a field in a tag template and all uses of that field.
213 // Users should enable the Data Catalog API in the project identified by
214 // the `name` parameter (see [Data Catalog Resource Project]
215 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
216 // more information).
217 DeleteTagTemplateField(ctx context.Context, in *DeleteTagTemplateFieldRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
218 // Deprecated: Do not use.
219 // Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
220 // Note: The project identified by the `parent` parameter for the
221 // [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
222 // and the
223 // [tag
224 // template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
225 // used to create the tag must be from the same organization.
226 CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*Tag, error)
227 // Deprecated: Do not use.
228 // Updates an existing tag.
229 UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*Tag, error)
230 // Deprecated: Do not use.
231 // Deletes a tag.
232 DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
233 // Deprecated: Do not use.
234 // Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
235 // The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
236 // are lowercased.
237 ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error)
238 // Deprecated: Do not use.
239 // Sets the access control policy for a resource. Replaces any existing
240 // policy.
241 // Supported resources are:
242 // - Tag templates.
243 // - Entries.
244 // - Entry groups.
245 //
246 // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
247 // and any external Google Cloud Platform resources synced to Data Catalog.
248 //
249 // Callers must have following Google IAM permission
250 // - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
251 // templates.
252 // - `datacatalog.entries.setIamPolicy` to set policies on entries.
253 // - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
254 SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
255 // Deprecated: Do not use.
256 // Gets the access control policy for a resource. A `NOT_FOUND` error
257 // is returned if the resource does not exist. An empty policy is returned
258 // if the resource exists but does not have a policy set on it.
259 //
260 // Supported resources are:
261 // - Tag templates.
262 // - Entries.
263 // - Entry groups.
264 //
265 // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
266 // and any external Google Cloud Platform resources synced to Data Catalog.
267 //
268 // Callers must have following Google IAM permission
269 // - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
270 // templates.
271 // - `datacatalog.entries.getIamPolicy` to get policies on entries.
272 // - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
273 GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
274 // Deprecated: Do not use.
275 // Returns the caller's permissions on a resource.
276 // If the resource does not exist, an empty set of permissions is returned
277 // (We don't return a `NOT_FOUND` error).
278 //
279 // Supported resources are:
280 // - Tag templates.
281 // - Entries.
282 // - Entry groups.
283 //
284 // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
285 // and any external Google Cloud Platform resources synced to Data Catalog.
286 //
287 // A caller is not required to have Google IAM permission to make this
288 // request.
289 TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
290 }
291
292 type dataCatalogClient struct {
293 cc grpc.ClientConnInterface
294 }
295
296 // Deprecated: Do not use.
297 func NewDataCatalogClient(cc grpc.ClientConnInterface) DataCatalogClient {
298 return &dataCatalogClient{cc}
299 }
300
301 // Deprecated: Do not use.
302 func (c *dataCatalogClient) SearchCatalog(ctx context.Context, in *SearchCatalogRequest, opts ...grpc.CallOption) (*SearchCatalogResponse, error) {
303 out := new(SearchCatalogResponse)
304 err := c.cc.Invoke(ctx, DataCatalog_SearchCatalog_FullMethodName, in, out, opts...)
305 if err != nil {
306 return nil, err
307 }
308 return out, nil
309 }
310
311 // Deprecated: Do not use.
312 func (c *dataCatalogClient) CreateEntryGroup(ctx context.Context, in *CreateEntryGroupRequest, opts ...grpc.CallOption) (*EntryGroup, error) {
313 out := new(EntryGroup)
314 err := c.cc.Invoke(ctx, DataCatalog_CreateEntryGroup_FullMethodName, in, out, opts...)
315 if err != nil {
316 return nil, err
317 }
318 return out, nil
319 }
320
321 // Deprecated: Do not use.
322 func (c *dataCatalogClient) UpdateEntryGroup(ctx context.Context, in *UpdateEntryGroupRequest, opts ...grpc.CallOption) (*EntryGroup, error) {
323 out := new(EntryGroup)
324 err := c.cc.Invoke(ctx, DataCatalog_UpdateEntryGroup_FullMethodName, in, out, opts...)
325 if err != nil {
326 return nil, err
327 }
328 return out, nil
329 }
330
331 // Deprecated: Do not use.
332 func (c *dataCatalogClient) GetEntryGroup(ctx context.Context, in *GetEntryGroupRequest, opts ...grpc.CallOption) (*EntryGroup, error) {
333 out := new(EntryGroup)
334 err := c.cc.Invoke(ctx, DataCatalog_GetEntryGroup_FullMethodName, in, out, opts...)
335 if err != nil {
336 return nil, err
337 }
338 return out, nil
339 }
340
341 // Deprecated: Do not use.
342 func (c *dataCatalogClient) DeleteEntryGroup(ctx context.Context, in *DeleteEntryGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
343 out := new(emptypb.Empty)
344 err := c.cc.Invoke(ctx, DataCatalog_DeleteEntryGroup_FullMethodName, in, out, opts...)
345 if err != nil {
346 return nil, err
347 }
348 return out, nil
349 }
350
351 // Deprecated: Do not use.
352 func (c *dataCatalogClient) ListEntryGroups(ctx context.Context, in *ListEntryGroupsRequest, opts ...grpc.CallOption) (*ListEntryGroupsResponse, error) {
353 out := new(ListEntryGroupsResponse)
354 err := c.cc.Invoke(ctx, DataCatalog_ListEntryGroups_FullMethodName, in, out, opts...)
355 if err != nil {
356 return nil, err
357 }
358 return out, nil
359 }
360
361 // Deprecated: Do not use.
362 func (c *dataCatalogClient) CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*Entry, error) {
363 out := new(Entry)
364 err := c.cc.Invoke(ctx, DataCatalog_CreateEntry_FullMethodName, in, out, opts...)
365 if err != nil {
366 return nil, err
367 }
368 return out, nil
369 }
370
371 // Deprecated: Do not use.
372 func (c *dataCatalogClient) UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*Entry, error) {
373 out := new(Entry)
374 err := c.cc.Invoke(ctx, DataCatalog_UpdateEntry_FullMethodName, in, out, opts...)
375 if err != nil {
376 return nil, err
377 }
378 return out, nil
379 }
380
381 // Deprecated: Do not use.
382 func (c *dataCatalogClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
383 out := new(emptypb.Empty)
384 err := c.cc.Invoke(ctx, DataCatalog_DeleteEntry_FullMethodName, in, out, opts...)
385 if err != nil {
386 return nil, err
387 }
388 return out, nil
389 }
390
391 // Deprecated: Do not use.
392 func (c *dataCatalogClient) GetEntry(ctx context.Context, in *GetEntryRequest, opts ...grpc.CallOption) (*Entry, error) {
393 out := new(Entry)
394 err := c.cc.Invoke(ctx, DataCatalog_GetEntry_FullMethodName, in, out, opts...)
395 if err != nil {
396 return nil, err
397 }
398 return out, nil
399 }
400
401 // Deprecated: Do not use.
402 func (c *dataCatalogClient) LookupEntry(ctx context.Context, in *LookupEntryRequest, opts ...grpc.CallOption) (*Entry, error) {
403 out := new(Entry)
404 err := c.cc.Invoke(ctx, DataCatalog_LookupEntry_FullMethodName, in, out, opts...)
405 if err != nil {
406 return nil, err
407 }
408 return out, nil
409 }
410
411 // Deprecated: Do not use.
412 func (c *dataCatalogClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error) {
413 out := new(ListEntriesResponse)
414 err := c.cc.Invoke(ctx, DataCatalog_ListEntries_FullMethodName, in, out, opts...)
415 if err != nil {
416 return nil, err
417 }
418 return out, nil
419 }
420
421 // Deprecated: Do not use.
422 func (c *dataCatalogClient) CreateTagTemplate(ctx context.Context, in *CreateTagTemplateRequest, opts ...grpc.CallOption) (*TagTemplate, error) {
423 out := new(TagTemplate)
424 err := c.cc.Invoke(ctx, DataCatalog_CreateTagTemplate_FullMethodName, in, out, opts...)
425 if err != nil {
426 return nil, err
427 }
428 return out, nil
429 }
430
431 // Deprecated: Do not use.
432 func (c *dataCatalogClient) GetTagTemplate(ctx context.Context, in *GetTagTemplateRequest, opts ...grpc.CallOption) (*TagTemplate, error) {
433 out := new(TagTemplate)
434 err := c.cc.Invoke(ctx, DataCatalog_GetTagTemplate_FullMethodName, in, out, opts...)
435 if err != nil {
436 return nil, err
437 }
438 return out, nil
439 }
440
441 // Deprecated: Do not use.
442 func (c *dataCatalogClient) UpdateTagTemplate(ctx context.Context, in *UpdateTagTemplateRequest, opts ...grpc.CallOption) (*TagTemplate, error) {
443 out := new(TagTemplate)
444 err := c.cc.Invoke(ctx, DataCatalog_UpdateTagTemplate_FullMethodName, in, out, opts...)
445 if err != nil {
446 return nil, err
447 }
448 return out, nil
449 }
450
451 // Deprecated: Do not use.
452 func (c *dataCatalogClient) DeleteTagTemplate(ctx context.Context, in *DeleteTagTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
453 out := new(emptypb.Empty)
454 err := c.cc.Invoke(ctx, DataCatalog_DeleteTagTemplate_FullMethodName, in, out, opts...)
455 if err != nil {
456 return nil, err
457 }
458 return out, nil
459 }
460
461 // Deprecated: Do not use.
462 func (c *dataCatalogClient) CreateTagTemplateField(ctx context.Context, in *CreateTagTemplateFieldRequest, opts ...grpc.CallOption) (*TagTemplateField, error) {
463 out := new(TagTemplateField)
464 err := c.cc.Invoke(ctx, DataCatalog_CreateTagTemplateField_FullMethodName, in, out, opts...)
465 if err != nil {
466 return nil, err
467 }
468 return out, nil
469 }
470
471 // Deprecated: Do not use.
472 func (c *dataCatalogClient) UpdateTagTemplateField(ctx context.Context, in *UpdateTagTemplateFieldRequest, opts ...grpc.CallOption) (*TagTemplateField, error) {
473 out := new(TagTemplateField)
474 err := c.cc.Invoke(ctx, DataCatalog_UpdateTagTemplateField_FullMethodName, in, out, opts...)
475 if err != nil {
476 return nil, err
477 }
478 return out, nil
479 }
480
481 // Deprecated: Do not use.
482 func (c *dataCatalogClient) RenameTagTemplateField(ctx context.Context, in *RenameTagTemplateFieldRequest, opts ...grpc.CallOption) (*TagTemplateField, error) {
483 out := new(TagTemplateField)
484 err := c.cc.Invoke(ctx, DataCatalog_RenameTagTemplateField_FullMethodName, in, out, opts...)
485 if err != nil {
486 return nil, err
487 }
488 return out, nil
489 }
490
491 // Deprecated: Do not use.
492 func (c *dataCatalogClient) RenameTagTemplateFieldEnumValue(ctx context.Context, in *RenameTagTemplateFieldEnumValueRequest, opts ...grpc.CallOption) (*TagTemplateField, error) {
493 out := new(TagTemplateField)
494 err := c.cc.Invoke(ctx, DataCatalog_RenameTagTemplateFieldEnumValue_FullMethodName, in, out, opts...)
495 if err != nil {
496 return nil, err
497 }
498 return out, nil
499 }
500
501 // Deprecated: Do not use.
502 func (c *dataCatalogClient) DeleteTagTemplateField(ctx context.Context, in *DeleteTagTemplateFieldRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
503 out := new(emptypb.Empty)
504 err := c.cc.Invoke(ctx, DataCatalog_DeleteTagTemplateField_FullMethodName, in, out, opts...)
505 if err != nil {
506 return nil, err
507 }
508 return out, nil
509 }
510
511 // Deprecated: Do not use.
512 func (c *dataCatalogClient) CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*Tag, error) {
513 out := new(Tag)
514 err := c.cc.Invoke(ctx, DataCatalog_CreateTag_FullMethodName, in, out, opts...)
515 if err != nil {
516 return nil, err
517 }
518 return out, nil
519 }
520
521 // Deprecated: Do not use.
522 func (c *dataCatalogClient) UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*Tag, error) {
523 out := new(Tag)
524 err := c.cc.Invoke(ctx, DataCatalog_UpdateTag_FullMethodName, in, out, opts...)
525 if err != nil {
526 return nil, err
527 }
528 return out, nil
529 }
530
531 // Deprecated: Do not use.
532 func (c *dataCatalogClient) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
533 out := new(emptypb.Empty)
534 err := c.cc.Invoke(ctx, DataCatalog_DeleteTag_FullMethodName, in, out, opts...)
535 if err != nil {
536 return nil, err
537 }
538 return out, nil
539 }
540
541 // Deprecated: Do not use.
542 func (c *dataCatalogClient) ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error) {
543 out := new(ListTagsResponse)
544 err := c.cc.Invoke(ctx, DataCatalog_ListTags_FullMethodName, in, out, opts...)
545 if err != nil {
546 return nil, err
547 }
548 return out, nil
549 }
550
551 // Deprecated: Do not use.
552 func (c *dataCatalogClient) SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) {
553 out := new(iampb.Policy)
554 err := c.cc.Invoke(ctx, DataCatalog_SetIamPolicy_FullMethodName, in, out, opts...)
555 if err != nil {
556 return nil, err
557 }
558 return out, nil
559 }
560
561 // Deprecated: Do not use.
562 func (c *dataCatalogClient) GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) {
563 out := new(iampb.Policy)
564 err := c.cc.Invoke(ctx, DataCatalog_GetIamPolicy_FullMethodName, in, out, opts...)
565 if err != nil {
566 return nil, err
567 }
568 return out, nil
569 }
570
571 // Deprecated: Do not use.
572 func (c *dataCatalogClient) TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error) {
573 out := new(iampb.TestIamPermissionsResponse)
574 err := c.cc.Invoke(ctx, DataCatalog_TestIamPermissions_FullMethodName, in, out, opts...)
575 if err != nil {
576 return nil, err
577 }
578 return out, nil
579 }
580
581 // DataCatalogServer is the server API for DataCatalog service.
582 // All implementations should embed UnimplementedDataCatalogServer
583 // for forward compatibility
584 //
585 // Deprecated: Do not use.
586 type DataCatalogServer interface {
587 // Deprecated: Do not use.
588 // Searches Data Catalog for multiple resources like entries, tags that
589 // match a query.
590 //
591 // This is a custom method
592 // (https://cloud.google.com/apis/design/custom_methods) and does not return
593 // the complete resource, only the resource identifier and high level
594 // fields. Clients can subsequently call `Get` methods.
595 //
596 // Note that Data Catalog search queries do not guarantee full recall. Query
597 // results that match your query may not be returned, even in subsequent
598 // result pages. Also note that results returned (and not returned) can vary
599 // across repeated search queries.
600 //
601 // See [Data Catalog Search
602 // Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
603 // for more information.
604 SearchCatalog(context.Context, *SearchCatalogRequest) (*SearchCatalogResponse, error)
605 // Deprecated: Do not use.
606 // A maximum of 10,000 entry groups may be created per organization across all
607 // locations.
608 //
609 // Users should enable the Data Catalog API in the project identified by
610 // the `parent` parameter (see [Data Catalog Resource Project]
611 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
612 // more information).
613 CreateEntryGroup(context.Context, *CreateEntryGroupRequest) (*EntryGroup, error)
614 // Deprecated: Do not use.
615 // Updates an EntryGroup. The user should enable the Data Catalog API in the
616 // project identified by the `entry_group.name` parameter (see [Data Catalog
617 // Resource Project]
618 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
619 // more information).
620 UpdateEntryGroup(context.Context, *UpdateEntryGroupRequest) (*EntryGroup, error)
621 // Deprecated: Do not use.
622 // Gets an EntryGroup.
623 GetEntryGroup(context.Context, *GetEntryGroupRequest) (*EntryGroup, error)
624 // Deprecated: Do not use.
625 // Deletes an EntryGroup. Only entry groups that do not contain entries can be
626 // deleted. Users should enable the Data Catalog API in the project
627 // identified by the `name` parameter (see [Data Catalog Resource Project]
628 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
629 // more information).
630 DeleteEntryGroup(context.Context, *DeleteEntryGroupRequest) (*emptypb.Empty, error)
631 // Deprecated: Do not use.
632 // Lists entry groups.
633 ListEntryGroups(context.Context, *ListEntryGroupsRequest) (*ListEntryGroupsResponse, error)
634 // Deprecated: Do not use.
635 // Creates an entry. Only entries of 'FILESET' type or user-specified type can
636 // be created.
637 //
638 // Users should enable the Data Catalog API in the project identified by
639 // the `parent` parameter (see [Data Catalog Resource Project]
640 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
641 // more information).
642 //
643 // A maximum of 100,000 entries may be created per entry group.
644 CreateEntry(context.Context, *CreateEntryRequest) (*Entry, error)
645 // Deprecated: Do not use.
646 // Updates an existing entry.
647 // Users should enable the Data Catalog API in the project identified by
648 // the `entry.name` parameter (see [Data Catalog Resource Project]
649 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
650 // more information).
651 UpdateEntry(context.Context, *UpdateEntryRequest) (*Entry, error)
652 // Deprecated: Do not use.
653 // Deletes an existing entry. Only entries created through
654 // [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
655 // method can be deleted.
656 // Users should enable the Data Catalog API in the project identified by
657 // the `name` parameter (see [Data Catalog Resource Project]
658 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
659 // more information).
660 DeleteEntry(context.Context, *DeleteEntryRequest) (*emptypb.Empty, error)
661 // Deprecated: Do not use.
662 // Gets an entry.
663 GetEntry(context.Context, *GetEntryRequest) (*Entry, error)
664 // Deprecated: Do not use.
665 // Get an entry by target resource name. This method allows clients to use
666 // the resource name from the source Google Cloud Platform service to get the
667 // Data Catalog Entry.
668 LookupEntry(context.Context, *LookupEntryRequest) (*Entry, error)
669 // Deprecated: Do not use.
670 // Lists entries.
671 ListEntries(context.Context, *ListEntriesRequest) (*ListEntriesResponse, error)
672 // Deprecated: Do not use.
673 // Creates a tag template. The user should enable the Data Catalog API in
674 // the project identified by the `parent` parameter (see [Data Catalog
675 // Resource
676 // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
677 // for more information).
678 CreateTagTemplate(context.Context, *CreateTagTemplateRequest) (*TagTemplate, error)
679 // Deprecated: Do not use.
680 // Gets a tag template.
681 GetTagTemplate(context.Context, *GetTagTemplateRequest) (*TagTemplate, error)
682 // Deprecated: Do not use.
683 // Updates a tag template. This method cannot be used to update the fields of
684 // a template. The tag template fields are represented as separate resources
685 // and should be updated using their own create/update/delete methods.
686 // Users should enable the Data Catalog API in the project identified by
687 // the `tag_template.name` parameter (see [Data Catalog Resource Project]
688 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
689 // more information).
690 UpdateTagTemplate(context.Context, *UpdateTagTemplateRequest) (*TagTemplate, error)
691 // Deprecated: Do not use.
692 // Deletes a tag template and all tags using the template.
693 // Users should enable the Data Catalog API in the project identified by
694 // the `name` parameter (see [Data Catalog Resource Project]
695 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
696 // more information).
697 DeleteTagTemplate(context.Context, *DeleteTagTemplateRequest) (*emptypb.Empty, error)
698 // Deprecated: Do not use.
699 // Creates a field in a tag template. The user should enable the Data Catalog
700 // API in the project identified by the `parent` parameter (see
701 // [Data Catalog Resource
702 // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
703 // for more information).
704 CreateTagTemplateField(context.Context, *CreateTagTemplateFieldRequest) (*TagTemplateField, error)
705 // Deprecated: Do not use.
706 // Updates a field in a tag template. This method cannot be used to update the
707 // field type. Users should enable the Data Catalog API in the project
708 // identified by the `name` parameter (see [Data Catalog Resource Project]
709 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
710 // more information).
711 UpdateTagTemplateField(context.Context, *UpdateTagTemplateFieldRequest) (*TagTemplateField, error)
712 // Deprecated: Do not use.
713 // Renames a field in a tag template. The user should enable the Data Catalog
714 // API in the project identified by the `name` parameter (see [Data Catalog
715 // Resource
716 // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
717 // for more information).
718 RenameTagTemplateField(context.Context, *RenameTagTemplateFieldRequest) (*TagTemplateField, error)
719 // Deprecated: Do not use.
720 // Renames an enum value in a tag template. The enum values have to be unique
721 // within one enum field. Thus, an enum value cannot be renamed with a name
722 // used in any other enum value within the same enum field.
723 RenameTagTemplateFieldEnumValue(context.Context, *RenameTagTemplateFieldEnumValueRequest) (*TagTemplateField, error)
724 // Deprecated: Do not use.
725 // Deletes a field in a tag template and all uses of that field.
726 // Users should enable the Data Catalog API in the project identified by
727 // the `name` parameter (see [Data Catalog Resource Project]
728 // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
729 // more information).
730 DeleteTagTemplateField(context.Context, *DeleteTagTemplateFieldRequest) (*emptypb.Empty, error)
731 // Deprecated: Do not use.
732 // Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
733 // Note: The project identified by the `parent` parameter for the
734 // [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
735 // and the
736 // [tag
737 // template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
738 // used to create the tag must be from the same organization.
739 CreateTag(context.Context, *CreateTagRequest) (*Tag, error)
740 // Deprecated: Do not use.
741 // Updates an existing tag.
742 UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error)
743 // Deprecated: Do not use.
744 // Deletes a tag.
745 DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error)
746 // Deprecated: Do not use.
747 // Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
748 // The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
749 // are lowercased.
750 ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error)
751 // Deprecated: Do not use.
752 // Sets the access control policy for a resource. Replaces any existing
753 // policy.
754 // Supported resources are:
755 // - Tag templates.
756 // - Entries.
757 // - Entry groups.
758 //
759 // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
760 // and any external Google Cloud Platform resources synced to Data Catalog.
761 //
762 // Callers must have following Google IAM permission
763 // - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
764 // templates.
765 // - `datacatalog.entries.setIamPolicy` to set policies on entries.
766 // - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
767 SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
768 // Deprecated: Do not use.
769 // Gets the access control policy for a resource. A `NOT_FOUND` error
770 // is returned if the resource does not exist. An empty policy is returned
771 // if the resource exists but does not have a policy set on it.
772 //
773 // Supported resources are:
774 // - Tag templates.
775 // - Entries.
776 // - Entry groups.
777 //
778 // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
779 // and any external Google Cloud Platform resources synced to Data Catalog.
780 //
781 // Callers must have following Google IAM permission
782 // - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
783 // templates.
784 // - `datacatalog.entries.getIamPolicy` to get policies on entries.
785 // - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
786 GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
787 // Deprecated: Do not use.
788 // Returns the caller's permissions on a resource.
789 // If the resource does not exist, an empty set of permissions is returned
790 // (We don't return a `NOT_FOUND` error).
791 //
792 // Supported resources are:
793 // - Tag templates.
794 // - Entries.
795 // - Entry groups.
796 //
797 // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
798 // and any external Google Cloud Platform resources synced to Data Catalog.
799 //
800 // A caller is not required to have Google IAM permission to make this
801 // request.
802 TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
803 }
804
805 // UnimplementedDataCatalogServer should be embedded to have forward compatible implementations.
806 type UnimplementedDataCatalogServer struct {
807 }
808
809 func (UnimplementedDataCatalogServer) SearchCatalog(context.Context, *SearchCatalogRequest) (*SearchCatalogResponse, error) {
810 return nil, status.Errorf(codes.Unimplemented, "method SearchCatalog not implemented")
811 }
812 func (UnimplementedDataCatalogServer) CreateEntryGroup(context.Context, *CreateEntryGroupRequest) (*EntryGroup, error) {
813 return nil, status.Errorf(codes.Unimplemented, "method CreateEntryGroup not implemented")
814 }
815 func (UnimplementedDataCatalogServer) UpdateEntryGroup(context.Context, *UpdateEntryGroupRequest) (*EntryGroup, error) {
816 return nil, status.Errorf(codes.Unimplemented, "method UpdateEntryGroup not implemented")
817 }
818 func (UnimplementedDataCatalogServer) GetEntryGroup(context.Context, *GetEntryGroupRequest) (*EntryGroup, error) {
819 return nil, status.Errorf(codes.Unimplemented, "method GetEntryGroup not implemented")
820 }
821 func (UnimplementedDataCatalogServer) DeleteEntryGroup(context.Context, *DeleteEntryGroupRequest) (*emptypb.Empty, error) {
822 return nil, status.Errorf(codes.Unimplemented, "method DeleteEntryGroup not implemented")
823 }
824 func (UnimplementedDataCatalogServer) ListEntryGroups(context.Context, *ListEntryGroupsRequest) (*ListEntryGroupsResponse, error) {
825 return nil, status.Errorf(codes.Unimplemented, "method ListEntryGroups not implemented")
826 }
827 func (UnimplementedDataCatalogServer) CreateEntry(context.Context, *CreateEntryRequest) (*Entry, error) {
828 return nil, status.Errorf(codes.Unimplemented, "method CreateEntry not implemented")
829 }
830 func (UnimplementedDataCatalogServer) UpdateEntry(context.Context, *UpdateEntryRequest) (*Entry, error) {
831 return nil, status.Errorf(codes.Unimplemented, "method UpdateEntry not implemented")
832 }
833 func (UnimplementedDataCatalogServer) DeleteEntry(context.Context, *DeleteEntryRequest) (*emptypb.Empty, error) {
834 return nil, status.Errorf(codes.Unimplemented, "method DeleteEntry not implemented")
835 }
836 func (UnimplementedDataCatalogServer) GetEntry(context.Context, *GetEntryRequest) (*Entry, error) {
837 return nil, status.Errorf(codes.Unimplemented, "method GetEntry not implemented")
838 }
839 func (UnimplementedDataCatalogServer) LookupEntry(context.Context, *LookupEntryRequest) (*Entry, error) {
840 return nil, status.Errorf(codes.Unimplemented, "method LookupEntry not implemented")
841 }
842 func (UnimplementedDataCatalogServer) ListEntries(context.Context, *ListEntriesRequest) (*ListEntriesResponse, error) {
843 return nil, status.Errorf(codes.Unimplemented, "method ListEntries not implemented")
844 }
845 func (UnimplementedDataCatalogServer) CreateTagTemplate(context.Context, *CreateTagTemplateRequest) (*TagTemplate, error) {
846 return nil, status.Errorf(codes.Unimplemented, "method CreateTagTemplate not implemented")
847 }
848 func (UnimplementedDataCatalogServer) GetTagTemplate(context.Context, *GetTagTemplateRequest) (*TagTemplate, error) {
849 return nil, status.Errorf(codes.Unimplemented, "method GetTagTemplate not implemented")
850 }
851 func (UnimplementedDataCatalogServer) UpdateTagTemplate(context.Context, *UpdateTagTemplateRequest) (*TagTemplate, error) {
852 return nil, status.Errorf(codes.Unimplemented, "method UpdateTagTemplate not implemented")
853 }
854 func (UnimplementedDataCatalogServer) DeleteTagTemplate(context.Context, *DeleteTagTemplateRequest) (*emptypb.Empty, error) {
855 return nil, status.Errorf(codes.Unimplemented, "method DeleteTagTemplate not implemented")
856 }
857 func (UnimplementedDataCatalogServer) CreateTagTemplateField(context.Context, *CreateTagTemplateFieldRequest) (*TagTemplateField, error) {
858 return nil, status.Errorf(codes.Unimplemented, "method CreateTagTemplateField not implemented")
859 }
860 func (UnimplementedDataCatalogServer) UpdateTagTemplateField(context.Context, *UpdateTagTemplateFieldRequest) (*TagTemplateField, error) {
861 return nil, status.Errorf(codes.Unimplemented, "method UpdateTagTemplateField not implemented")
862 }
863 func (UnimplementedDataCatalogServer) RenameTagTemplateField(context.Context, *RenameTagTemplateFieldRequest) (*TagTemplateField, error) {
864 return nil, status.Errorf(codes.Unimplemented, "method RenameTagTemplateField not implemented")
865 }
866 func (UnimplementedDataCatalogServer) RenameTagTemplateFieldEnumValue(context.Context, *RenameTagTemplateFieldEnumValueRequest) (*TagTemplateField, error) {
867 return nil, status.Errorf(codes.Unimplemented, "method RenameTagTemplateFieldEnumValue not implemented")
868 }
869 func (UnimplementedDataCatalogServer) DeleteTagTemplateField(context.Context, *DeleteTagTemplateFieldRequest) (*emptypb.Empty, error) {
870 return nil, status.Errorf(codes.Unimplemented, "method DeleteTagTemplateField not implemented")
871 }
872 func (UnimplementedDataCatalogServer) CreateTag(context.Context, *CreateTagRequest) (*Tag, error) {
873 return nil, status.Errorf(codes.Unimplemented, "method CreateTag not implemented")
874 }
875 func (UnimplementedDataCatalogServer) UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error) {
876 return nil, status.Errorf(codes.Unimplemented, "method UpdateTag not implemented")
877 }
878 func (UnimplementedDataCatalogServer) DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error) {
879 return nil, status.Errorf(codes.Unimplemented, "method DeleteTag not implemented")
880 }
881 func (UnimplementedDataCatalogServer) ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error) {
882 return nil, status.Errorf(codes.Unimplemented, "method ListTags not implemented")
883 }
884 func (UnimplementedDataCatalogServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error) {
885 return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented")
886 }
887 func (UnimplementedDataCatalogServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error) {
888 return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented")
889 }
890 func (UnimplementedDataCatalogServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error) {
891 return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented")
892 }
893
894 // UnsafeDataCatalogServer may be embedded to opt out of forward compatibility for this service.
895 // Use of this interface is not recommended, as added methods to DataCatalogServer will
896 // result in compilation errors.
897 type UnsafeDataCatalogServer interface {
898 mustEmbedUnimplementedDataCatalogServer()
899 }
900
901 // Deprecated: Do not use.
902 func RegisterDataCatalogServer(s grpc.ServiceRegistrar, srv DataCatalogServer) {
903 s.RegisterService(&DataCatalog_ServiceDesc, srv)
904 }
905
906 func _DataCatalog_SearchCatalog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
907 in := new(SearchCatalogRequest)
908 if err := dec(in); err != nil {
909 return nil, err
910 }
911 if interceptor == nil {
912 return srv.(DataCatalogServer).SearchCatalog(ctx, in)
913 }
914 info := &grpc.UnaryServerInfo{
915 Server: srv,
916 FullMethod: DataCatalog_SearchCatalog_FullMethodName,
917 }
918 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
919 return srv.(DataCatalogServer).SearchCatalog(ctx, req.(*SearchCatalogRequest))
920 }
921 return interceptor(ctx, in, info, handler)
922 }
923
924 func _DataCatalog_CreateEntryGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
925 in := new(CreateEntryGroupRequest)
926 if err := dec(in); err != nil {
927 return nil, err
928 }
929 if interceptor == nil {
930 return srv.(DataCatalogServer).CreateEntryGroup(ctx, in)
931 }
932 info := &grpc.UnaryServerInfo{
933 Server: srv,
934 FullMethod: DataCatalog_CreateEntryGroup_FullMethodName,
935 }
936 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
937 return srv.(DataCatalogServer).CreateEntryGroup(ctx, req.(*CreateEntryGroupRequest))
938 }
939 return interceptor(ctx, in, info, handler)
940 }
941
942 func _DataCatalog_UpdateEntryGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
943 in := new(UpdateEntryGroupRequest)
944 if err := dec(in); err != nil {
945 return nil, err
946 }
947 if interceptor == nil {
948 return srv.(DataCatalogServer).UpdateEntryGroup(ctx, in)
949 }
950 info := &grpc.UnaryServerInfo{
951 Server: srv,
952 FullMethod: DataCatalog_UpdateEntryGroup_FullMethodName,
953 }
954 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
955 return srv.(DataCatalogServer).UpdateEntryGroup(ctx, req.(*UpdateEntryGroupRequest))
956 }
957 return interceptor(ctx, in, info, handler)
958 }
959
960 func _DataCatalog_GetEntryGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
961 in := new(GetEntryGroupRequest)
962 if err := dec(in); err != nil {
963 return nil, err
964 }
965 if interceptor == nil {
966 return srv.(DataCatalogServer).GetEntryGroup(ctx, in)
967 }
968 info := &grpc.UnaryServerInfo{
969 Server: srv,
970 FullMethod: DataCatalog_GetEntryGroup_FullMethodName,
971 }
972 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
973 return srv.(DataCatalogServer).GetEntryGroup(ctx, req.(*GetEntryGroupRequest))
974 }
975 return interceptor(ctx, in, info, handler)
976 }
977
978 func _DataCatalog_DeleteEntryGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
979 in := new(DeleteEntryGroupRequest)
980 if err := dec(in); err != nil {
981 return nil, err
982 }
983 if interceptor == nil {
984 return srv.(DataCatalogServer).DeleteEntryGroup(ctx, in)
985 }
986 info := &grpc.UnaryServerInfo{
987 Server: srv,
988 FullMethod: DataCatalog_DeleteEntryGroup_FullMethodName,
989 }
990 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
991 return srv.(DataCatalogServer).DeleteEntryGroup(ctx, req.(*DeleteEntryGroupRequest))
992 }
993 return interceptor(ctx, in, info, handler)
994 }
995
996 func _DataCatalog_ListEntryGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
997 in := new(ListEntryGroupsRequest)
998 if err := dec(in); err != nil {
999 return nil, err
1000 }
1001 if interceptor == nil {
1002 return srv.(DataCatalogServer).ListEntryGroups(ctx, in)
1003 }
1004 info := &grpc.UnaryServerInfo{
1005 Server: srv,
1006 FullMethod: DataCatalog_ListEntryGroups_FullMethodName,
1007 }
1008 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1009 return srv.(DataCatalogServer).ListEntryGroups(ctx, req.(*ListEntryGroupsRequest))
1010 }
1011 return interceptor(ctx, in, info, handler)
1012 }
1013
1014 func _DataCatalog_CreateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1015 in := new(CreateEntryRequest)
1016 if err := dec(in); err != nil {
1017 return nil, err
1018 }
1019 if interceptor == nil {
1020 return srv.(DataCatalogServer).CreateEntry(ctx, in)
1021 }
1022 info := &grpc.UnaryServerInfo{
1023 Server: srv,
1024 FullMethod: DataCatalog_CreateEntry_FullMethodName,
1025 }
1026 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1027 return srv.(DataCatalogServer).CreateEntry(ctx, req.(*CreateEntryRequest))
1028 }
1029 return interceptor(ctx, in, info, handler)
1030 }
1031
1032 func _DataCatalog_UpdateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1033 in := new(UpdateEntryRequest)
1034 if err := dec(in); err != nil {
1035 return nil, err
1036 }
1037 if interceptor == nil {
1038 return srv.(DataCatalogServer).UpdateEntry(ctx, in)
1039 }
1040 info := &grpc.UnaryServerInfo{
1041 Server: srv,
1042 FullMethod: DataCatalog_UpdateEntry_FullMethodName,
1043 }
1044 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1045 return srv.(DataCatalogServer).UpdateEntry(ctx, req.(*UpdateEntryRequest))
1046 }
1047 return interceptor(ctx, in, info, handler)
1048 }
1049
1050 func _DataCatalog_DeleteEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1051 in := new(DeleteEntryRequest)
1052 if err := dec(in); err != nil {
1053 return nil, err
1054 }
1055 if interceptor == nil {
1056 return srv.(DataCatalogServer).DeleteEntry(ctx, in)
1057 }
1058 info := &grpc.UnaryServerInfo{
1059 Server: srv,
1060 FullMethod: DataCatalog_DeleteEntry_FullMethodName,
1061 }
1062 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1063 return srv.(DataCatalogServer).DeleteEntry(ctx, req.(*DeleteEntryRequest))
1064 }
1065 return interceptor(ctx, in, info, handler)
1066 }
1067
1068 func _DataCatalog_GetEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1069 in := new(GetEntryRequest)
1070 if err := dec(in); err != nil {
1071 return nil, err
1072 }
1073 if interceptor == nil {
1074 return srv.(DataCatalogServer).GetEntry(ctx, in)
1075 }
1076 info := &grpc.UnaryServerInfo{
1077 Server: srv,
1078 FullMethod: DataCatalog_GetEntry_FullMethodName,
1079 }
1080 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1081 return srv.(DataCatalogServer).GetEntry(ctx, req.(*GetEntryRequest))
1082 }
1083 return interceptor(ctx, in, info, handler)
1084 }
1085
1086 func _DataCatalog_LookupEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1087 in := new(LookupEntryRequest)
1088 if err := dec(in); err != nil {
1089 return nil, err
1090 }
1091 if interceptor == nil {
1092 return srv.(DataCatalogServer).LookupEntry(ctx, in)
1093 }
1094 info := &grpc.UnaryServerInfo{
1095 Server: srv,
1096 FullMethod: DataCatalog_LookupEntry_FullMethodName,
1097 }
1098 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1099 return srv.(DataCatalogServer).LookupEntry(ctx, req.(*LookupEntryRequest))
1100 }
1101 return interceptor(ctx, in, info, handler)
1102 }
1103
1104 func _DataCatalog_ListEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1105 in := new(ListEntriesRequest)
1106 if err := dec(in); err != nil {
1107 return nil, err
1108 }
1109 if interceptor == nil {
1110 return srv.(DataCatalogServer).ListEntries(ctx, in)
1111 }
1112 info := &grpc.UnaryServerInfo{
1113 Server: srv,
1114 FullMethod: DataCatalog_ListEntries_FullMethodName,
1115 }
1116 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1117 return srv.(DataCatalogServer).ListEntries(ctx, req.(*ListEntriesRequest))
1118 }
1119 return interceptor(ctx, in, info, handler)
1120 }
1121
1122 func _DataCatalog_CreateTagTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1123 in := new(CreateTagTemplateRequest)
1124 if err := dec(in); err != nil {
1125 return nil, err
1126 }
1127 if interceptor == nil {
1128 return srv.(DataCatalogServer).CreateTagTemplate(ctx, in)
1129 }
1130 info := &grpc.UnaryServerInfo{
1131 Server: srv,
1132 FullMethod: DataCatalog_CreateTagTemplate_FullMethodName,
1133 }
1134 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1135 return srv.(DataCatalogServer).CreateTagTemplate(ctx, req.(*CreateTagTemplateRequest))
1136 }
1137 return interceptor(ctx, in, info, handler)
1138 }
1139
1140 func _DataCatalog_GetTagTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1141 in := new(GetTagTemplateRequest)
1142 if err := dec(in); err != nil {
1143 return nil, err
1144 }
1145 if interceptor == nil {
1146 return srv.(DataCatalogServer).GetTagTemplate(ctx, in)
1147 }
1148 info := &grpc.UnaryServerInfo{
1149 Server: srv,
1150 FullMethod: DataCatalog_GetTagTemplate_FullMethodName,
1151 }
1152 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1153 return srv.(DataCatalogServer).GetTagTemplate(ctx, req.(*GetTagTemplateRequest))
1154 }
1155 return interceptor(ctx, in, info, handler)
1156 }
1157
1158 func _DataCatalog_UpdateTagTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1159 in := new(UpdateTagTemplateRequest)
1160 if err := dec(in); err != nil {
1161 return nil, err
1162 }
1163 if interceptor == nil {
1164 return srv.(DataCatalogServer).UpdateTagTemplate(ctx, in)
1165 }
1166 info := &grpc.UnaryServerInfo{
1167 Server: srv,
1168 FullMethod: DataCatalog_UpdateTagTemplate_FullMethodName,
1169 }
1170 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1171 return srv.(DataCatalogServer).UpdateTagTemplate(ctx, req.(*UpdateTagTemplateRequest))
1172 }
1173 return interceptor(ctx, in, info, handler)
1174 }
1175
1176 func _DataCatalog_DeleteTagTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1177 in := new(DeleteTagTemplateRequest)
1178 if err := dec(in); err != nil {
1179 return nil, err
1180 }
1181 if interceptor == nil {
1182 return srv.(DataCatalogServer).DeleteTagTemplate(ctx, in)
1183 }
1184 info := &grpc.UnaryServerInfo{
1185 Server: srv,
1186 FullMethod: DataCatalog_DeleteTagTemplate_FullMethodName,
1187 }
1188 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1189 return srv.(DataCatalogServer).DeleteTagTemplate(ctx, req.(*DeleteTagTemplateRequest))
1190 }
1191 return interceptor(ctx, in, info, handler)
1192 }
1193
1194 func _DataCatalog_CreateTagTemplateField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1195 in := new(CreateTagTemplateFieldRequest)
1196 if err := dec(in); err != nil {
1197 return nil, err
1198 }
1199 if interceptor == nil {
1200 return srv.(DataCatalogServer).CreateTagTemplateField(ctx, in)
1201 }
1202 info := &grpc.UnaryServerInfo{
1203 Server: srv,
1204 FullMethod: DataCatalog_CreateTagTemplateField_FullMethodName,
1205 }
1206 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1207 return srv.(DataCatalogServer).CreateTagTemplateField(ctx, req.(*CreateTagTemplateFieldRequest))
1208 }
1209 return interceptor(ctx, in, info, handler)
1210 }
1211
1212 func _DataCatalog_UpdateTagTemplateField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1213 in := new(UpdateTagTemplateFieldRequest)
1214 if err := dec(in); err != nil {
1215 return nil, err
1216 }
1217 if interceptor == nil {
1218 return srv.(DataCatalogServer).UpdateTagTemplateField(ctx, in)
1219 }
1220 info := &grpc.UnaryServerInfo{
1221 Server: srv,
1222 FullMethod: DataCatalog_UpdateTagTemplateField_FullMethodName,
1223 }
1224 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1225 return srv.(DataCatalogServer).UpdateTagTemplateField(ctx, req.(*UpdateTagTemplateFieldRequest))
1226 }
1227 return interceptor(ctx, in, info, handler)
1228 }
1229
1230 func _DataCatalog_RenameTagTemplateField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1231 in := new(RenameTagTemplateFieldRequest)
1232 if err := dec(in); err != nil {
1233 return nil, err
1234 }
1235 if interceptor == nil {
1236 return srv.(DataCatalogServer).RenameTagTemplateField(ctx, in)
1237 }
1238 info := &grpc.UnaryServerInfo{
1239 Server: srv,
1240 FullMethod: DataCatalog_RenameTagTemplateField_FullMethodName,
1241 }
1242 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1243 return srv.(DataCatalogServer).RenameTagTemplateField(ctx, req.(*RenameTagTemplateFieldRequest))
1244 }
1245 return interceptor(ctx, in, info, handler)
1246 }
1247
1248 func _DataCatalog_RenameTagTemplateFieldEnumValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1249 in := new(RenameTagTemplateFieldEnumValueRequest)
1250 if err := dec(in); err != nil {
1251 return nil, err
1252 }
1253 if interceptor == nil {
1254 return srv.(DataCatalogServer).RenameTagTemplateFieldEnumValue(ctx, in)
1255 }
1256 info := &grpc.UnaryServerInfo{
1257 Server: srv,
1258 FullMethod: DataCatalog_RenameTagTemplateFieldEnumValue_FullMethodName,
1259 }
1260 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1261 return srv.(DataCatalogServer).RenameTagTemplateFieldEnumValue(ctx, req.(*RenameTagTemplateFieldEnumValueRequest))
1262 }
1263 return interceptor(ctx, in, info, handler)
1264 }
1265
1266 func _DataCatalog_DeleteTagTemplateField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1267 in := new(DeleteTagTemplateFieldRequest)
1268 if err := dec(in); err != nil {
1269 return nil, err
1270 }
1271 if interceptor == nil {
1272 return srv.(DataCatalogServer).DeleteTagTemplateField(ctx, in)
1273 }
1274 info := &grpc.UnaryServerInfo{
1275 Server: srv,
1276 FullMethod: DataCatalog_DeleteTagTemplateField_FullMethodName,
1277 }
1278 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1279 return srv.(DataCatalogServer).DeleteTagTemplateField(ctx, req.(*DeleteTagTemplateFieldRequest))
1280 }
1281 return interceptor(ctx, in, info, handler)
1282 }
1283
1284 func _DataCatalog_CreateTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1285 in := new(CreateTagRequest)
1286 if err := dec(in); err != nil {
1287 return nil, err
1288 }
1289 if interceptor == nil {
1290 return srv.(DataCatalogServer).CreateTag(ctx, in)
1291 }
1292 info := &grpc.UnaryServerInfo{
1293 Server: srv,
1294 FullMethod: DataCatalog_CreateTag_FullMethodName,
1295 }
1296 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1297 return srv.(DataCatalogServer).CreateTag(ctx, req.(*CreateTagRequest))
1298 }
1299 return interceptor(ctx, in, info, handler)
1300 }
1301
1302 func _DataCatalog_UpdateTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1303 in := new(UpdateTagRequest)
1304 if err := dec(in); err != nil {
1305 return nil, err
1306 }
1307 if interceptor == nil {
1308 return srv.(DataCatalogServer).UpdateTag(ctx, in)
1309 }
1310 info := &grpc.UnaryServerInfo{
1311 Server: srv,
1312 FullMethod: DataCatalog_UpdateTag_FullMethodName,
1313 }
1314 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1315 return srv.(DataCatalogServer).UpdateTag(ctx, req.(*UpdateTagRequest))
1316 }
1317 return interceptor(ctx, in, info, handler)
1318 }
1319
1320 func _DataCatalog_DeleteTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1321 in := new(DeleteTagRequest)
1322 if err := dec(in); err != nil {
1323 return nil, err
1324 }
1325 if interceptor == nil {
1326 return srv.(DataCatalogServer).DeleteTag(ctx, in)
1327 }
1328 info := &grpc.UnaryServerInfo{
1329 Server: srv,
1330 FullMethod: DataCatalog_DeleteTag_FullMethodName,
1331 }
1332 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1333 return srv.(DataCatalogServer).DeleteTag(ctx, req.(*DeleteTagRequest))
1334 }
1335 return interceptor(ctx, in, info, handler)
1336 }
1337
1338 func _DataCatalog_ListTags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1339 in := new(ListTagsRequest)
1340 if err := dec(in); err != nil {
1341 return nil, err
1342 }
1343 if interceptor == nil {
1344 return srv.(DataCatalogServer).ListTags(ctx, in)
1345 }
1346 info := &grpc.UnaryServerInfo{
1347 Server: srv,
1348 FullMethod: DataCatalog_ListTags_FullMethodName,
1349 }
1350 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1351 return srv.(DataCatalogServer).ListTags(ctx, req.(*ListTagsRequest))
1352 }
1353 return interceptor(ctx, in, info, handler)
1354 }
1355
1356 func _DataCatalog_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1357 in := new(iampb.SetIamPolicyRequest)
1358 if err := dec(in); err != nil {
1359 return nil, err
1360 }
1361 if interceptor == nil {
1362 return srv.(DataCatalogServer).SetIamPolicy(ctx, in)
1363 }
1364 info := &grpc.UnaryServerInfo{
1365 Server: srv,
1366 FullMethod: DataCatalog_SetIamPolicy_FullMethodName,
1367 }
1368 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1369 return srv.(DataCatalogServer).SetIamPolicy(ctx, req.(*iampb.SetIamPolicyRequest))
1370 }
1371 return interceptor(ctx, in, info, handler)
1372 }
1373
1374 func _DataCatalog_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1375 in := new(iampb.GetIamPolicyRequest)
1376 if err := dec(in); err != nil {
1377 return nil, err
1378 }
1379 if interceptor == nil {
1380 return srv.(DataCatalogServer).GetIamPolicy(ctx, in)
1381 }
1382 info := &grpc.UnaryServerInfo{
1383 Server: srv,
1384 FullMethod: DataCatalog_GetIamPolicy_FullMethodName,
1385 }
1386 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1387 return srv.(DataCatalogServer).GetIamPolicy(ctx, req.(*iampb.GetIamPolicyRequest))
1388 }
1389 return interceptor(ctx, in, info, handler)
1390 }
1391
1392 func _DataCatalog_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1393 in := new(iampb.TestIamPermissionsRequest)
1394 if err := dec(in); err != nil {
1395 return nil, err
1396 }
1397 if interceptor == nil {
1398 return srv.(DataCatalogServer).TestIamPermissions(ctx, in)
1399 }
1400 info := &grpc.UnaryServerInfo{
1401 Server: srv,
1402 FullMethod: DataCatalog_TestIamPermissions_FullMethodName,
1403 }
1404 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1405 return srv.(DataCatalogServer).TestIamPermissions(ctx, req.(*iampb.TestIamPermissionsRequest))
1406 }
1407 return interceptor(ctx, in, info, handler)
1408 }
1409
1410 // DataCatalog_ServiceDesc is the grpc.ServiceDesc for DataCatalog service.
1411 // It's only intended for direct use with grpc.RegisterService,
1412 // and not to be introspected or modified (even as a copy)
1413 var DataCatalog_ServiceDesc = grpc.ServiceDesc{
1414 ServiceName: "google.cloud.datacatalog.v1beta1.DataCatalog",
1415 HandlerType: (*DataCatalogServer)(nil),
1416 Methods: []grpc.MethodDesc{
1417 {
1418 MethodName: "SearchCatalog",
1419 Handler: _DataCatalog_SearchCatalog_Handler,
1420 },
1421 {
1422 MethodName: "CreateEntryGroup",
1423 Handler: _DataCatalog_CreateEntryGroup_Handler,
1424 },
1425 {
1426 MethodName: "UpdateEntryGroup",
1427 Handler: _DataCatalog_UpdateEntryGroup_Handler,
1428 },
1429 {
1430 MethodName: "GetEntryGroup",
1431 Handler: _DataCatalog_GetEntryGroup_Handler,
1432 },
1433 {
1434 MethodName: "DeleteEntryGroup",
1435 Handler: _DataCatalog_DeleteEntryGroup_Handler,
1436 },
1437 {
1438 MethodName: "ListEntryGroups",
1439 Handler: _DataCatalog_ListEntryGroups_Handler,
1440 },
1441 {
1442 MethodName: "CreateEntry",
1443 Handler: _DataCatalog_CreateEntry_Handler,
1444 },
1445 {
1446 MethodName: "UpdateEntry",
1447 Handler: _DataCatalog_UpdateEntry_Handler,
1448 },
1449 {
1450 MethodName: "DeleteEntry",
1451 Handler: _DataCatalog_DeleteEntry_Handler,
1452 },
1453 {
1454 MethodName: "GetEntry",
1455 Handler: _DataCatalog_GetEntry_Handler,
1456 },
1457 {
1458 MethodName: "LookupEntry",
1459 Handler: _DataCatalog_LookupEntry_Handler,
1460 },
1461 {
1462 MethodName: "ListEntries",
1463 Handler: _DataCatalog_ListEntries_Handler,
1464 },
1465 {
1466 MethodName: "CreateTagTemplate",
1467 Handler: _DataCatalog_CreateTagTemplate_Handler,
1468 },
1469 {
1470 MethodName: "GetTagTemplate",
1471 Handler: _DataCatalog_GetTagTemplate_Handler,
1472 },
1473 {
1474 MethodName: "UpdateTagTemplate",
1475 Handler: _DataCatalog_UpdateTagTemplate_Handler,
1476 },
1477 {
1478 MethodName: "DeleteTagTemplate",
1479 Handler: _DataCatalog_DeleteTagTemplate_Handler,
1480 },
1481 {
1482 MethodName: "CreateTagTemplateField",
1483 Handler: _DataCatalog_CreateTagTemplateField_Handler,
1484 },
1485 {
1486 MethodName: "UpdateTagTemplateField",
1487 Handler: _DataCatalog_UpdateTagTemplateField_Handler,
1488 },
1489 {
1490 MethodName: "RenameTagTemplateField",
1491 Handler: _DataCatalog_RenameTagTemplateField_Handler,
1492 },
1493 {
1494 MethodName: "RenameTagTemplateFieldEnumValue",
1495 Handler: _DataCatalog_RenameTagTemplateFieldEnumValue_Handler,
1496 },
1497 {
1498 MethodName: "DeleteTagTemplateField",
1499 Handler: _DataCatalog_DeleteTagTemplateField_Handler,
1500 },
1501 {
1502 MethodName: "CreateTag",
1503 Handler: _DataCatalog_CreateTag_Handler,
1504 },
1505 {
1506 MethodName: "UpdateTag",
1507 Handler: _DataCatalog_UpdateTag_Handler,
1508 },
1509 {
1510 MethodName: "DeleteTag",
1511 Handler: _DataCatalog_DeleteTag_Handler,
1512 },
1513 {
1514 MethodName: "ListTags",
1515 Handler: _DataCatalog_ListTags_Handler,
1516 },
1517 {
1518 MethodName: "SetIamPolicy",
1519 Handler: _DataCatalog_SetIamPolicy_Handler,
1520 },
1521 {
1522 MethodName: "GetIamPolicy",
1523 Handler: _DataCatalog_GetIamPolicy_Handler,
1524 },
1525 {
1526 MethodName: "TestIamPermissions",
1527 Handler: _DataCatalog_TestIamPermissions_Handler,
1528 },
1529 },
1530 Streams: []grpc.StreamDesc{},
1531 Metadata: "google/cloud/datacatalog/v1beta1/datacatalog.proto",
1532 }