Debian Codegraph @

bigquery/datapolicies/apiv1beta1/datapoliciespb/datapolicy.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. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto
20
21 package datapoliciespb
22
23 import (
24 iampb "cloud.google.com/go/iam/apiv1/iampb"
25 context "context"
26 _ "google.golang.org/genproto/googleapis/api/annotations"
27 grpc "google.golang.org/grpc"
28 codes "google.golang.org/grpc/codes"
29 status "google.golang.org/grpc/status"
30 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32 emptypb "google.golang.org/protobuf/types/known/emptypb"
33 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
34 reflect "reflect"
35 sync "sync"
36 )
37
38 const (
39 // Verify that this generated code is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41 // Verify that runtime/protoimpl is sufficiently up-to-date.
42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43 )
44
45 // A list of supported data policy types.
46 type DataPolicy_DataPolicyType int32
47
48 const (
49 // Default value for the data policy type. This should not be used.
50 DataPolicy_DATA_POLICY_TYPE_UNSPECIFIED DataPolicy_DataPolicyType = 0
51 // Used to create a data policy for column-level security, without data
52 // masking.
53 DataPolicy_COLUMN_LEVEL_SECURITY_POLICY DataPolicy_DataPolicyType = 3
54 // Used to create a data policy for data masking.
55 DataPolicy_DATA_MASKING_POLICY DataPolicy_DataPolicyType = 2
56 )
57
58 // Enum value maps for DataPolicy_DataPolicyType.
59 var (
60 DataPolicy_DataPolicyType_name = map[int32]string{
61 0: "DATA_POLICY_TYPE_UNSPECIFIED",
62 3: "COLUMN_LEVEL_SECURITY_POLICY",
63 2: "DATA_MASKING_POLICY",
64 }
65 DataPolicy_DataPolicyType_value = map[string]int32{
66 "DATA_POLICY_TYPE_UNSPECIFIED": 0,
67 "COLUMN_LEVEL_SECURITY_POLICY": 3,
68 "DATA_MASKING_POLICY": 2,
69 }
70 )
71
72 func (x DataPolicy_DataPolicyType) Enum() *DataPolicy_DataPolicyType {
73 p := new(DataPolicy_DataPolicyType)
74 *p = x
75 return p
76 }
77
78 func (x DataPolicy_DataPolicyType) String() string {
79 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
80 }
81
82 func (DataPolicy_DataPolicyType) Descriptor() protoreflect.EnumDescriptor {
83 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_enumTypes[0].Descriptor()
84 }
85
86 func (DataPolicy_DataPolicyType) Type() protoreflect.EnumType {
87 return &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_enumTypes[0]
88 }
89
90 func (x DataPolicy_DataPolicyType) Number() protoreflect.EnumNumber {
91 return protoreflect.EnumNumber(x)
92 }
93
94 // Deprecated: Use DataPolicy_DataPolicyType.Descriptor instead.
95 func (DataPolicy_DataPolicyType) EnumDescriptor() ([]byte, []int) {
96 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{6, 0}
97 }
98
99 // The available masking rules. Learn more here:
100 // https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
101 type DataMaskingPolicy_PredefinedExpression int32
102
103 const (
104 // Default, unspecified predefined expression. No masking will take place
105 // since no expression is specified.
106 DataMaskingPolicy_PREDEFINED_EXPRESSION_UNSPECIFIED DataMaskingPolicy_PredefinedExpression = 0
107 // Masking expression to replace data with SHA-256 hash.
108 DataMaskingPolicy_SHA256 DataMaskingPolicy_PredefinedExpression = 3
109 // Masking expression to replace data with NULLs.
110 DataMaskingPolicy_ALWAYS_NULL DataMaskingPolicy_PredefinedExpression = 5
111 // Masking expression to replace data with their default masking values.
112 // The default masking values for each type listed as below:
113 //
114 // * STRING: ""
115 // * BYTES: b”
116 // * INTEGER: 0
117 // * FLOAT: 0.0
118 // * NUMERIC: 0
119 // * BOOLEAN: FALSE
120 // * TIMESTAMP: 0001-01-01 00:00:00 UTC
121 // * DATE: 0001-01-01
122 // * TIME: 00:00:00
123 // * DATETIME: 0001-01-01T00:00:00
124 // * GEOGRAPHY: POINT(0 0)
125 // * BIGNUMERIC: 0
126 // * ARRAY: []
127 // * STRUCT: NOT_APPLICABLE
128 // * JSON: NULL
129 DataMaskingPolicy_DEFAULT_MASKING_VALUE DataMaskingPolicy_PredefinedExpression = 7
130 )
131
132 // Enum value maps for DataMaskingPolicy_PredefinedExpression.
133 var (
134 DataMaskingPolicy_PredefinedExpression_name = map[int32]string{
135 0: "PREDEFINED_EXPRESSION_UNSPECIFIED",
136 3: "SHA256",
137 5: "ALWAYS_NULL",
138 7: "DEFAULT_MASKING_VALUE",
139 }
140 DataMaskingPolicy_PredefinedExpression_value = map[string]int32{
141 "PREDEFINED_EXPRESSION_UNSPECIFIED": 0,
142 "SHA256": 3,
143 "ALWAYS_NULL": 5,
144 "DEFAULT_MASKING_VALUE": 7,
145 }
146 )
147
148 func (x DataMaskingPolicy_PredefinedExpression) Enum() *DataMaskingPolicy_PredefinedExpression {
149 p := new(DataMaskingPolicy_PredefinedExpression)
150 *p = x
151 return p
152 }
153
154 func (x DataMaskingPolicy_PredefinedExpression) String() string {
155 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
156 }
157
158 func (DataMaskingPolicy_PredefinedExpression) Descriptor() protoreflect.EnumDescriptor {
159 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_enumTypes[1].Descriptor()
160 }
161
162 func (DataMaskingPolicy_PredefinedExpression) Type() protoreflect.EnumType {
163 return &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_enumTypes[1]
164 }
165
166 func (x DataMaskingPolicy_PredefinedExpression) Number() protoreflect.EnumNumber {
167 return protoreflect.EnumNumber(x)
168 }
169
170 // Deprecated: Use DataMaskingPolicy_PredefinedExpression.Descriptor instead.
171 func (DataMaskingPolicy_PredefinedExpression) EnumDescriptor() ([]byte, []int) {
172 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{7, 0}
173 }
174
175 // Request message for the CreateDataPolicy method.
176 type CreateDataPolicyRequest struct {
177 state protoimpl.MessageState
178 sizeCache protoimpl.SizeCache
179 unknownFields protoimpl.UnknownFields
180
181 // Required. Resource name of the project that the data policy will belong to. The
182 // format is `projects/{project_number}/locations/{location_id}`.
183 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
184 // Required. The data policy to create. The `name` field does not need to be
185 // provided for the data policy creation.
186 DataPolicy *DataPolicy `protobuf:"bytes,2,opt,name=data_policy,json=dataPolicy,proto3" json:"data_policy,omitempty"`
187 }
188
189 func (x *CreateDataPolicyRequest) Reset() {
190 *x = CreateDataPolicyRequest{}
191 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[0]
192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
193 ms.StoreMessageInfo(mi)
194 }
195
196 func (x *CreateDataPolicyRequest) String() string {
197 return protoimpl.X.MessageStringOf(x)
198 }
199
200 func (*CreateDataPolicyRequest) ProtoMessage() {}
201
202 func (x *CreateDataPolicyRequest) ProtoReflect() protoreflect.Message {
203 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[0]
204 if x != nil {
205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
206 if ms.LoadMessageInfo() == nil {
207 ms.StoreMessageInfo(mi)
208 }
209 return ms
210 }
211 return mi.MessageOf(x)
212 }
213
214 // Deprecated: Use CreateDataPolicyRequest.ProtoReflect.Descriptor instead.
215 func (*CreateDataPolicyRequest) Descriptor() ([]byte, []int) {
216 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{0}
217 }
218
219 func (x *CreateDataPolicyRequest) GetParent() string {
220 if x != nil {
221 return x.Parent
222 }
223 return ""
224 }
225
226 func (x *CreateDataPolicyRequest) GetDataPolicy() *DataPolicy {
227 if x != nil {
228 return x.DataPolicy
229 }
230 return nil
231 }
232
233 // Response message for the UpdateDataPolicy method.
234 type UpdateDataPolicyRequest struct {
235 state protoimpl.MessageState
236 sizeCache protoimpl.SizeCache
237 unknownFields protoimpl.UnknownFields
238
239 // Required. Update the data policy's metadata.
240 //
241 // The target data policy is determined by the `name` field.
242 // Other fields are updated to the specified values based on the field masks.
243 DataPolicy *DataPolicy `protobuf:"bytes,1,opt,name=data_policy,json=dataPolicy,proto3" json:"data_policy,omitempty"`
244 // The update mask applies to the resource. For the `FieldMask` definition,
245 // see
246 // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
247 // If not set, defaults to all of the fields that are allowed to update.
248 //
249 // Updates to the `name` and `dataPolicyId` fields are not allowed.
250 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
251 }
252
253 func (x *UpdateDataPolicyRequest) Reset() {
254 *x = UpdateDataPolicyRequest{}
255 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[1]
256 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
257 ms.StoreMessageInfo(mi)
258 }
259
260 func (x *UpdateDataPolicyRequest) String() string {
261 return protoimpl.X.MessageStringOf(x)
262 }
263
264 func (*UpdateDataPolicyRequest) ProtoMessage() {}
265
266 func (x *UpdateDataPolicyRequest) ProtoReflect() protoreflect.Message {
267 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[1]
268 if x != nil {
269 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
270 if ms.LoadMessageInfo() == nil {
271 ms.StoreMessageInfo(mi)
272 }
273 return ms
274 }
275 return mi.MessageOf(x)
276 }
277
278 // Deprecated: Use UpdateDataPolicyRequest.ProtoReflect.Descriptor instead.
279 func (*UpdateDataPolicyRequest) Descriptor() ([]byte, []int) {
280 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{1}
281 }
282
283 func (x *UpdateDataPolicyRequest) GetDataPolicy() *DataPolicy {
284 if x != nil {
285 return x.DataPolicy
286 }
287 return nil
288 }
289
290 func (x *UpdateDataPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
291 if x != nil {
292 return x.UpdateMask
293 }
294 return nil
295 }
296
297 // Request message for the DeleteDataPolicy method.
298 type DeleteDataPolicyRequest struct {
299 state protoimpl.MessageState
300 sizeCache protoimpl.SizeCache
301 unknownFields protoimpl.UnknownFields
302
303 // Required. Resource name of the data policy to delete. Format is
304 // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
305 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
306 }
307
308 func (x *DeleteDataPolicyRequest) Reset() {
309 *x = DeleteDataPolicyRequest{}
310 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[2]
311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
312 ms.StoreMessageInfo(mi)
313 }
314
315 func (x *DeleteDataPolicyRequest) String() string {
316 return protoimpl.X.MessageStringOf(x)
317 }
318
319 func (*DeleteDataPolicyRequest) ProtoMessage() {}
320
321 func (x *DeleteDataPolicyRequest) ProtoReflect() protoreflect.Message {
322 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[2]
323 if x != nil {
324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
325 if ms.LoadMessageInfo() == nil {
326 ms.StoreMessageInfo(mi)
327 }
328 return ms
329 }
330 return mi.MessageOf(x)
331 }
332
333 // Deprecated: Use DeleteDataPolicyRequest.ProtoReflect.Descriptor instead.
334 func (*DeleteDataPolicyRequest) Descriptor() ([]byte, []int) {
335 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{2}
336 }
337
338 func (x *DeleteDataPolicyRequest) GetName() string {
339 if x != nil {
340 return x.Name
341 }
342 return ""
343 }
344
345 // Request message for the GetDataPolicy method.
346 type GetDataPolicyRequest struct {
347 state protoimpl.MessageState
348 sizeCache protoimpl.SizeCache
349 unknownFields protoimpl.UnknownFields
350
351 // Required. Resource name of the requested data policy. Format is
352 // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
353 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
354 }
355
356 func (x *GetDataPolicyRequest) Reset() {
357 *x = GetDataPolicyRequest{}
358 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[3]
359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
360 ms.StoreMessageInfo(mi)
361 }
362
363 func (x *GetDataPolicyRequest) String() string {
364 return protoimpl.X.MessageStringOf(x)
365 }
366
367 func (*GetDataPolicyRequest) ProtoMessage() {}
368
369 func (x *GetDataPolicyRequest) ProtoReflect() protoreflect.Message {
370 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[3]
371 if x != nil {
372 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
373 if ms.LoadMessageInfo() == nil {
374 ms.StoreMessageInfo(mi)
375 }
376 return ms
377 }
378 return mi.MessageOf(x)
379 }
380
381 // Deprecated: Use GetDataPolicyRequest.ProtoReflect.Descriptor instead.
382 func (*GetDataPolicyRequest) Descriptor() ([]byte, []int) {
383 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{3}
384 }
385
386 func (x *GetDataPolicyRequest) GetName() string {
387 if x != nil {
388 return x.Name
389 }
390 return ""
391 }
392
393 // Request message for the ListDataPolicies method.
394 type ListDataPoliciesRequest struct {
395 state protoimpl.MessageState
396 sizeCache protoimpl.SizeCache
397 unknownFields protoimpl.UnknownFields
398
399 // Required. Resource name of the project for which to list data policies. Format is
400 // `projects/{project_number}/locations/{location_id}`.
401 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
402 // The maximum number of data policies to return. Must be a value between 1
403 // and 1000.
404 // If not set, defaults to 50.
405 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
406 // The `nextPageToken` value returned from a previous list request, if any. If
407 // not set, defaults to an empty string.
408 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
409 }
410
411 func (x *ListDataPoliciesRequest) Reset() {
412 *x = ListDataPoliciesRequest{}
413 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[4]
414 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
415 ms.StoreMessageInfo(mi)
416 }
417
418 func (x *ListDataPoliciesRequest) String() string {
419 return protoimpl.X.MessageStringOf(x)
420 }
421
422 func (*ListDataPoliciesRequest) ProtoMessage() {}
423
424 func (x *ListDataPoliciesRequest) ProtoReflect() protoreflect.Message {
425 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[4]
426 if x != nil {
427 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
428 if ms.LoadMessageInfo() == nil {
429 ms.StoreMessageInfo(mi)
430 }
431 return ms
432 }
433 return mi.MessageOf(x)
434 }
435
436 // Deprecated: Use ListDataPoliciesRequest.ProtoReflect.Descriptor instead.
437 func (*ListDataPoliciesRequest) Descriptor() ([]byte, []int) {
438 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{4}
439 }
440
441 func (x *ListDataPoliciesRequest) GetParent() string {
442 if x != nil {
443 return x.Parent
444 }
445 return ""
446 }
447
448 func (x *ListDataPoliciesRequest) GetPageSize() int32 {
449 if x != nil {
450 return x.PageSize
451 }
452 return 0
453 }
454
455 func (x *ListDataPoliciesRequest) GetPageToken() string {
456 if x != nil {
457 return x.PageToken
458 }
459 return ""
460 }
461
462 // Response message for the ListDataPolicies method.
463 type ListDataPoliciesResponse struct {
464 state protoimpl.MessageState
465 sizeCache protoimpl.SizeCache
466 unknownFields protoimpl.UnknownFields
467
468 // Data policies that belong to the requested project.
469 DataPolicies []*DataPolicy `protobuf:"bytes,1,rep,name=data_policies,json=dataPolicies,proto3" json:"data_policies,omitempty"`
470 // Token used to retrieve the next page of results, or empty if there are no
471 // more results.
472 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
473 }
474
475 func (x *ListDataPoliciesResponse) Reset() {
476 *x = ListDataPoliciesResponse{}
477 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[5]
478 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
479 ms.StoreMessageInfo(mi)
480 }
481
482 func (x *ListDataPoliciesResponse) String() string {
483 return protoimpl.X.MessageStringOf(x)
484 }
485
486 func (*ListDataPoliciesResponse) ProtoMessage() {}
487
488 func (x *ListDataPoliciesResponse) ProtoReflect() protoreflect.Message {
489 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[5]
490 if x != nil {
491 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
492 if ms.LoadMessageInfo() == nil {
493 ms.StoreMessageInfo(mi)
494 }
495 return ms
496 }
497 return mi.MessageOf(x)
498 }
499
500 // Deprecated: Use ListDataPoliciesResponse.ProtoReflect.Descriptor instead.
501 func (*ListDataPoliciesResponse) Descriptor() ([]byte, []int) {
502 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{5}
503 }
504
505 func (x *ListDataPoliciesResponse) GetDataPolicies() []*DataPolicy {
506 if x != nil {
507 return x.DataPolicies
508 }
509 return nil
510 }
511
512 func (x *ListDataPoliciesResponse) GetNextPageToken() string {
513 if x != nil {
514 return x.NextPageToken
515 }
516 return ""
517 }
518
519 // Represents the label-policy binding.
520 type DataPolicy struct {
521 state protoimpl.MessageState
522 sizeCache protoimpl.SizeCache
523 unknownFields protoimpl.UnknownFields
524
525 // Label that is bound to this data policy.
526 //
527 // Types that are assignable to MatchingLabel:
528 //
529 // *DataPolicy_PolicyTag
530 MatchingLabel isDataPolicy_MatchingLabel `protobuf_oneof:"matching_label"`
531 // The policy that is bound to this data policy.
532 //
533 // Types that are assignable to Policy:
534 //
535 // *DataPolicy_DataMaskingPolicy
536 Policy isDataPolicy_Policy `protobuf_oneof:"policy"`
537 // Output only. Resource name of this data policy, in the format of
538 // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
539 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
540 // Type of data policy.
541 DataPolicyType DataPolicy_DataPolicyType `protobuf:"varint,2,opt,name=data_policy_type,json=dataPolicyType,proto3,enum=google.cloud.bigquery.datapolicies.v1beta1.DataPolicy_DataPolicyType" json:"data_policy_type,omitempty"`
542 // User-assigned (human readable) ID of the data policy that needs to be
543 // unique within a project. Used as {data_policy_id} in part of the resource
544 // name.
545 DataPolicyId string `protobuf:"bytes,3,opt,name=data_policy_id,json=dataPolicyId,proto3" json:"data_policy_id,omitempty"`
546 }
547
548 func (x *DataPolicy) Reset() {
549 *x = DataPolicy{}
550 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[6]
551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
552 ms.StoreMessageInfo(mi)
553 }
554
555 func (x *DataPolicy) String() string {
556 return protoimpl.X.MessageStringOf(x)
557 }
558
559 func (*DataPolicy) ProtoMessage() {}
560
561 func (x *DataPolicy) ProtoReflect() protoreflect.Message {
562 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[6]
563 if x != nil {
564 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
565 if ms.LoadMessageInfo() == nil {
566 ms.StoreMessageInfo(mi)
567 }
568 return ms
569 }
570 return mi.MessageOf(x)
571 }
572
573 // Deprecated: Use DataPolicy.ProtoReflect.Descriptor instead.
574 func (*DataPolicy) Descriptor() ([]byte, []int) {
575 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{6}
576 }
577
578 func (m *DataPolicy) GetMatchingLabel() isDataPolicy_MatchingLabel {
579 if m != nil {
580 return m.MatchingLabel
581 }
582 return nil
583 }
584
585 func (x *DataPolicy) GetPolicyTag() string {
586 if x, ok := x.GetMatchingLabel().(*DataPolicy_PolicyTag); ok {
587 return x.PolicyTag
588 }
589 return ""
590 }
591
592 func (m *DataPolicy) GetPolicy() isDataPolicy_Policy {
593 if m != nil {
594 return m.Policy
595 }
596 return nil
597 }
598
599 func (x *DataPolicy) GetDataMaskingPolicy() *DataMaskingPolicy {
600 if x, ok := x.GetPolicy().(*DataPolicy_DataMaskingPolicy); ok {
601 return x.DataMaskingPolicy
602 }
603 return nil
604 }
605
606 func (x *DataPolicy) GetName() string {
607 if x != nil {
608 return x.Name
609 }
610 return ""
611 }
612
613 func (x *DataPolicy) GetDataPolicyType() DataPolicy_DataPolicyType {
614 if x != nil {
615 return x.DataPolicyType
616 }
617 return DataPolicy_DATA_POLICY_TYPE_UNSPECIFIED
618 }
619
620 func (x *DataPolicy) GetDataPolicyId() string {
621 if x != nil {
622 return x.DataPolicyId
623 }
624 return ""
625 }
626
627 type isDataPolicy_MatchingLabel interface {
628 isDataPolicy_MatchingLabel()
629 }
630
631 type DataPolicy_PolicyTag struct {
632 // Policy tag resource name, in the format of
633 // `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
634 PolicyTag string `protobuf:"bytes,4,opt,name=policy_tag,json=policyTag,proto3,oneof"`
635 }
636
637 func (*DataPolicy_PolicyTag) isDataPolicy_MatchingLabel() {}
638
639 type isDataPolicy_Policy interface {
640 isDataPolicy_Policy()
641 }
642
643 type DataPolicy_DataMaskingPolicy struct {
644 // The data masking policy that specifies the data masking rule to use.
645 DataMaskingPolicy *DataMaskingPolicy `protobuf:"bytes,5,opt,name=data_masking_policy,json=dataMaskingPolicy,proto3,oneof"`
646 }
647
648 func (*DataPolicy_DataMaskingPolicy) isDataPolicy_Policy() {}
649
650 // The data masking policy that is used to specify data masking rule.
651 type DataMaskingPolicy struct {
652 state protoimpl.MessageState
653 sizeCache protoimpl.SizeCache
654 unknownFields protoimpl.UnknownFields
655
656 // A masking expression to bind to the data masking rule.
657 //
658 // Types that are assignable to MaskingExpression:
659 //
660 // *DataMaskingPolicy_PredefinedExpression_
661 MaskingExpression isDataMaskingPolicy_MaskingExpression `protobuf_oneof:"masking_expression"`
662 }
663
664 func (x *DataMaskingPolicy) Reset() {
665 *x = DataMaskingPolicy{}
666 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[7]
667 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
668 ms.StoreMessageInfo(mi)
669 }
670
671 func (x *DataMaskingPolicy) String() string {
672 return protoimpl.X.MessageStringOf(x)
673 }
674
675 func (*DataMaskingPolicy) ProtoMessage() {}
676
677 func (x *DataMaskingPolicy) ProtoReflect() protoreflect.Message {
678 mi := &file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[7]
679 if x != nil {
680 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
681 if ms.LoadMessageInfo() == nil {
682 ms.StoreMessageInfo(mi)
683 }
684 return ms
685 }
686 return mi.MessageOf(x)
687 }
688
689 // Deprecated: Use DataMaskingPolicy.ProtoReflect.Descriptor instead.
690 func (*DataMaskingPolicy) Descriptor() ([]byte, []int) {
691 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP(), []int{7}
692 }
693
694 func (m *DataMaskingPolicy) GetMaskingExpression() isDataMaskingPolicy_MaskingExpression {
695 if m != nil {
696 return m.MaskingExpression
697 }
698 return nil
699 }
700
701 func (x *DataMaskingPolicy) GetPredefinedExpression() DataMaskingPolicy_PredefinedExpression {
702 if x, ok := x.GetMaskingExpression().(*DataMaskingPolicy_PredefinedExpression_); ok {
703 return x.PredefinedExpression
704 }
705 return DataMaskingPolicy_PREDEFINED_EXPRESSION_UNSPECIFIED
706 }
707
708 type isDataMaskingPolicy_MaskingExpression interface {
709 isDataMaskingPolicy_MaskingExpression()
710 }
711
712 type DataMaskingPolicy_PredefinedExpression_ struct {
713 // A predefined masking expression.
714 PredefinedExpression DataMaskingPolicy_PredefinedExpression `protobuf:"varint,1,opt,name=predefined_expression,json=predefinedExpression,proto3,enum=google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy_PredefinedExpression,oneof"`
715 }
716
717 func (*DataMaskingPolicy_PredefinedExpression_) isDataMaskingPolicy_MaskingExpression() {}
718
719 var File_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto protoreflect.FileDescriptor
720
721 var file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDesc = []byte{
722 0x0a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
723 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69,
724 0x63, 0x69, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x61, 0x74,
725 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a, 0x67,
726 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71,
727 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
728 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
729 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
730 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
731 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
732 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
733 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
734 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65,
735 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
736 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x5f,
737 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f,
738 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69,
739 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
740 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e,
741 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
742 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73,
743 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61,
744 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,
745 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
746 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x12, 0x2c, 0x62, 0x69, 0x67,
747 0x71, 0x75, 0x65, 0x72, 0x79, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
748 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44,
749 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
750 0x74, 0x12, 0x5c, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
751 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
752 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64,
753 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65,
754 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03,
755 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,
756 0xb4, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,
757 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5c, 0x0a, 0x0b, 0x64,
758 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
759 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
760 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c,
761 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61,
762 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x64,
763 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64,
764 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
765 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
766 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
767 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x63, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
768 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
769 0x74, 0x12, 0x48, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
770 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x0a, 0x2c, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72,
771 0x79, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
772 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x50,
773 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x60, 0x0a, 0x14, 0x47,
774 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,
775 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
776 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x0a, 0x2c, 0x62, 0x69, 0x67, 0x71, 0x75,
777 0x65, 0x72, 0x79, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, 0x6f,
778 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74,
779 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa3, 0x01,
780 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,
781 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72,
782 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41,
783 0x2e, 0x12, 0x2c, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x64, 0x61, 0x74, 0x61, 0x70,
784 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
785 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
786 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f,
787 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
788 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
789 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f,
790 0x6b, 0x65, 0x6e, 0x22, 0x9f, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61,
791 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
792 0x12, 0x5b, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
793 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
794 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e,
795 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62,
796 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
797 0x0c, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a,
798 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
799 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
800 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd0, 0x04, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,
801 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x74,
802 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x70, 0x6f, 0x6c, 0x69,
803 0x63, 0x79, 0x54, 0x61, 0x67, 0x12, 0x6f, 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61,
804 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01,
805 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
806 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70,
807 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
808 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
809 0x79, 0x48, 0x01, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,
810 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
811 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
812 0x6f, 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x74,
813 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
814 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72,
815 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76,
816 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63,
817 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65,
818 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65,
819 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f,
820 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f,
821 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x6d, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,
822 0x6c, 0x69, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54, 0x41,
823 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,
824 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f,
825 0x4c, 0x55, 0x4d, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x53, 0x45, 0x43, 0x55, 0x52,
826 0x49, 0x54, 0x59, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13,
827 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x4f, 0x4c,
828 0x49, 0x43, 0x59, 0x10, 0x02, 0x3a, 0x75, 0xea, 0x41, 0x72, 0x0a, 0x2c, 0x62, 0x69, 0x67, 0x71,
829 0x75, 0x65, 0x72, 0x79, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x67,
830 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61,
831 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x42, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
832 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63,
833 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
834 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b,
835 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x42, 0x10, 0x0a, 0x0e,
836 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x08,
837 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xac, 0x02, 0x0a, 0x11, 0x44, 0x61, 0x74,
838 0x61, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x89,
839 0x01, 0x0a, 0x15, 0x70, 0x72, 0x65, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x65, 0x78,
840 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x52,
841 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69,
842 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63,
843 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
844 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x72,
845 0x65, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69,
846 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x14, 0x70, 0x72, 0x65, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64,
847 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x75, 0x0a, 0x14, 0x50, 0x72,
848 0x65, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69,
849 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x52, 0x45, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44,
850 0x5f, 0x45, 0x58, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50,
851 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41,
852 0x32, 0x35, 0x36, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f,
853 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c,
854 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10,
855 0x07, 0x42, 0x14, 0x0a, 0x12, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x78, 0x70,
856 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x32, 0xff, 0x0d, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61,
857 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xf0, 0x01,
858 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,
859 0x63, 0x79, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
860 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70,
861 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
862 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
863 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
864 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e,
865 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62,
866 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22,
867 0x5f, 0xda, 0x41, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x5f,
868 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x0b, 0x64, 0x61,
869 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65,
870 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
871 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
872 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
873 0x12, 0x81, 0x02, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50,
874 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
875 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61,
876 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
877 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c,
878 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f,
879 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65,
880 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e,
881 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,
882 0x63, 0x79, 0x22, 0x70, 0xda, 0x41, 0x17, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69,
883 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3,
884 0xe4, 0x93, 0x02, 0x50, 0x3a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
885 0x79, 0x32, 0x41, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74,
886 0x61, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,
887 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
888 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
889 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44,
890 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
891 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72,
892 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76,
893 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74,
894 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
895 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
896 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x44, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,
897 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x2a, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
898 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,
899 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
900 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xcf, 0x01, 0x0a,
901 0x0d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40,
902 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69,
903 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63,
904 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44,
905 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
906 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
907 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c,
908 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61,
909 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x44, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
910 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
911 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
912 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
913 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xe5,
914 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63,
915 0x69, 0x65, 0x73, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
916 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61,
917 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
918 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
919 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
920 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79,
921 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31,
922 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f,
923 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46,
924 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12,
925 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
926 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63,
927 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f,
928 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x61,
929 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
930 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,
931 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f,
932 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69,
933 0x63, 0x79, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x3a, 0x01, 0x2a, 0x22, 0x46, 0x2f,
934 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
935 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63,
936 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c,
937 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50,
938 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x9c, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d,
939 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
940 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,
941 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f,
942 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63,
943 0x79, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x3a, 0x01, 0x2a, 0x22, 0x46, 0x2f, 0x76,
944 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
945 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61,
946 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69,
947 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f,
948 0x6c, 0x69, 0x63, 0x79, 0x12, 0xc2, 0x01, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d,
949 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f,
950 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74,
951 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
952 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69,
953 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72,
954 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
955 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x3a, 0x01, 0x2a, 0x22, 0x4c, 0x2f, 0x76, 0x31,
956 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d,
957 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74,
958 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63,
959 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65,
960 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x7e, 0xca, 0x41, 0x21, 0x62, 0x69,
961 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
962 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
963 0x41, 0x57, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
964 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
965 0x68, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73,
966 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
967 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
968 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xa2, 0x02, 0x0a, 0x2e, 0x63, 0x6f,
969 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62,
970 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69,
971 0x63, 0x69, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0f, 0x44, 0x61,
972 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
973 0x52, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
974 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x64, 0x61,
975 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31,
976 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
977 0x65, 0x73, 0x70, 0x62, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
978 0x73, 0x70, 0x62, 0xaa, 0x02, 0x2a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f,
979 0x75, 0x64, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61,
980 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31,
981 0xca, 0x02, 0x2a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
982 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c,
983 0x69, 0x63, 0x69, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x2e,
984 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x42,
985 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c,
986 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06,
987 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
988 }
989
990 var (
991 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescOnce sync.Once
992 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescData = file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDesc
993 )
994
995 func file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescGZIP() []byte {
996 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescOnce.Do(func() {
997 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescData)
998 })
999 return file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDescData
1000 }
1001
1002 var file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
1003 var file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
1004 var file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_goTypes = []any{
1005 (DataPolicy_DataPolicyType)(0), // 0: google.cloud.bigquery.datapolicies.v1beta1.DataPolicy.DataPolicyType
1006 (DataMaskingPolicy_PredefinedExpression)(0), // 1: google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy.PredefinedExpression
1007 (*CreateDataPolicyRequest)(nil), // 2: google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest
1008 (*UpdateDataPolicyRequest)(nil), // 3: google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest
1009 (*DeleteDataPolicyRequest)(nil), // 4: google.cloud.bigquery.datapolicies.v1beta1.DeleteDataPolicyRequest
1010 (*GetDataPolicyRequest)(nil), // 5: google.cloud.bigquery.datapolicies.v1beta1.GetDataPolicyRequest
1011 (*ListDataPoliciesRequest)(nil), // 6: google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesRequest
1012 (*ListDataPoliciesResponse)(nil), // 7: google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse
1013 (*DataPolicy)(nil), // 8: google.cloud.bigquery.datapolicies.v1beta1.DataPolicy
1014 (*DataMaskingPolicy)(nil), // 9: google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy
1015 (*fieldmaskpb.FieldMask)(nil), // 10: google.protobuf.FieldMask
1016 (*iampb.GetIamPolicyRequest)(nil), // 11: google.iam.v1.GetIamPolicyRequest
1017 (*iampb.SetIamPolicyRequest)(nil), // 12: google.iam.v1.SetIamPolicyRequest
1018 (*iampb.TestIamPermissionsRequest)(nil), // 13: google.iam.v1.TestIamPermissionsRequest
1019 (*emptypb.Empty)(nil), // 14: google.protobuf.Empty
1020 (*iampb.Policy)(nil), // 15: google.iam.v1.Policy
1021 (*iampb.TestIamPermissionsResponse)(nil), // 16: google.iam.v1.TestIamPermissionsResponse
1022 }
1023 var file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_depIdxs = []int32{
1024 8, // 0: google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest.data_policy:type_name -> google.cloud.bigquery.datapolicies.v1beta1.DataPolicy
1025 8, // 1: google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest.data_policy:type_name -> google.cloud.bigquery.datapolicies.v1beta1.DataPolicy
1026 10, // 2: google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest.update_mask:type_name -> google.protobuf.FieldMask
1027 8, // 3: google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse.data_policies:type_name -> google.cloud.bigquery.datapolicies.v1beta1.DataPolicy
1028 9, // 4: google.cloud.bigquery.datapolicies.v1beta1.DataPolicy.data_masking_policy:type_name -> google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy
1029 0, // 5: google.cloud.bigquery.datapolicies.v1beta1.DataPolicy.data_policy_type:type_name -> google.cloud.bigquery.datapolicies.v1beta1.DataPolicy.DataPolicyType
1030 1, // 6: google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy.predefined_expression:type_name -> google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy.PredefinedExpression
1031 2, // 7: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy:input_type -> google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest
1032 3, // 8: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy:input_type -> google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest
1033 4, // 9: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy:input_type -> google.cloud.bigquery.datapolicies.v1beta1.DeleteDataPolicyRequest
1034 5, // 10: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy:input_type -> google.cloud.bigquery.datapolicies.v1beta1.GetDataPolicyRequest
1035 6, // 11: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies:input_type -> google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesRequest
1036 11, // 12: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy:input_type -> google.iam.v1.GetIamPolicyRequest
1037 12, // 13: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy:input_type -> google.iam.v1.SetIamPolicyRequest
1038 13, // 14: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions:input_type -> google.iam.v1.TestIamPermissionsRequest
1039 8, // 15: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy:output_type -> google.cloud.bigquery.datapolicies.v1beta1.DataPolicy
1040 8, // 16: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy:output_type -> google.cloud.bigquery.datapolicies.v1beta1.DataPolicy
1041 14, // 17: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy:output_type -> google.protobuf.Empty
1042 8, // 18: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy:output_type -> google.cloud.bigquery.datapolicies.v1beta1.DataPolicy
1043 7, // 19: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies:output_type -> google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse
1044 15, // 20: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy:output_type -> google.iam.v1.Policy
1045 15, // 21: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy:output_type -> google.iam.v1.Policy
1046 16, // 22: google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions:output_type -> google.iam.v1.TestIamPermissionsResponse
1047 15, // [15:23] is the sub-list for method output_type
1048 7, // [7:15] is the sub-list for method input_type
1049 7, // [7:7] is the sub-list for extension type_name
1050 7, // [7:7] is the sub-list for extension extendee
1051 0, // [0:7] is the sub-list for field type_name
1052 }
1053
1054 func init() { file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_init() }
1055 func file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_init() {
1056 if File_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto != nil {
1057 return
1058 }
1059 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[6].OneofWrappers = []any{
1060 (*DataPolicy_PolicyTag)(nil),
1061 (*DataPolicy_DataMaskingPolicy)(nil),
1062 }
1063 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes[7].OneofWrappers = []any{
1064 (*DataMaskingPolicy_PredefinedExpression_)(nil),
1065 }
1066 type x struct{}
1067 out := protoimpl.TypeBuilder{
1068 File: protoimpl.DescBuilder{
1069 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1070 RawDescriptor: file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDesc,
1071 NumEnums: 2,
1072 NumMessages: 8,
1073 NumExtensions: 0,
1074 NumServices: 1,
1075 },
1076 GoTypes: file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_goTypes,
1077 DependencyIndexes: file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_depIdxs,
1078 EnumInfos: file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_enumTypes,
1079 MessageInfos: file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_msgTypes,
1080 }.Build()
1081 File_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto = out.File
1082 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_rawDesc = nil
1083 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_goTypes = nil
1084 file_google_cloud_bigquery_datapolicies_v1beta1_datapolicy_proto_depIdxs = nil
1085 }
1086
1087 // Reference imports to suppress errors if they are not otherwise used.
1088 var _ context.Context
1089 var _ grpc.ClientConnInterface
1090
1091 // This is a compile-time assertion to ensure that this generated file
1092 // is compatible with the grpc package it is being compiled against.
1093 const _ = grpc.SupportPackageIsVersion6
1094
1095 // DataPolicyServiceClient is the client API for DataPolicyService service.
1096 //
1097 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1098 type DataPolicyServiceClient interface {
1099 // Creates a new data policy under a project with the given `dataPolicyId`
1100 // (used as the display name), policy tag, and data policy type.
1101 CreateDataPolicy(ctx context.Context, in *CreateDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error)
1102 // Updates the metadata for an existing data policy. The target data policy
1103 // can be specified by the resource name.
1104 UpdateDataPolicy(ctx context.Context, in *UpdateDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error)
1105 // Deletes the data policy specified by its resource name.
1106 DeleteDataPolicy(ctx context.Context, in *DeleteDataPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
1107 // Gets the data policy specified by its resource name.
1108 GetDataPolicy(ctx context.Context, in *GetDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error)
1109 // List all of the data policies in the specified parent project.
1110 ListDataPolicies(ctx context.Context, in *ListDataPoliciesRequest, opts ...grpc.CallOption) (*ListDataPoliciesResponse, error)
1111 // Gets the IAM policy for the specified data policy.
1112 GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
1113 // Sets the IAM policy for the specified data policy.
1114 SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
1115 // Returns the caller's permission on the specified data policy resource.
1116 TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
1117 }
1118
1119 type dataPolicyServiceClient struct {
1120 cc grpc.ClientConnInterface
1121 }
1122
1123 func NewDataPolicyServiceClient(cc grpc.ClientConnInterface) DataPolicyServiceClient {
1124 return &dataPolicyServiceClient{cc}
1125 }
1126
1127 func (c *dataPolicyServiceClient) CreateDataPolicy(ctx context.Context, in *CreateDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error) {
1128 out := new(DataPolicy)
1129 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/CreateDataPolicy", in, out, opts...)
1130 if err != nil {
1131 return nil, err
1132 }
1133 return out, nil
1134 }
1135
1136 func (c *dataPolicyServiceClient) UpdateDataPolicy(ctx context.Context, in *UpdateDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error) {
1137 out := new(DataPolicy)
1138 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/UpdateDataPolicy", in, out, opts...)
1139 if err != nil {
1140 return nil, err
1141 }
1142 return out, nil
1143 }
1144
1145 func (c *dataPolicyServiceClient) DeleteDataPolicy(ctx context.Context, in *DeleteDataPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
1146 out := new(emptypb.Empty)
1147 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/DeleteDataPolicy", in, out, opts...)
1148 if err != nil {
1149 return nil, err
1150 }
1151 return out, nil
1152 }
1153
1154 func (c *dataPolicyServiceClient) GetDataPolicy(ctx context.Context, in *GetDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error) {
1155 out := new(DataPolicy)
1156 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/GetDataPolicy", in, out, opts...)
1157 if err != nil {
1158 return nil, err
1159 }
1160 return out, nil
1161 }
1162
1163 func (c *dataPolicyServiceClient) ListDataPolicies(ctx context.Context, in *ListDataPoliciesRequest, opts ...grpc.CallOption) (*ListDataPoliciesResponse, error) {
1164 out := new(ListDataPoliciesResponse)
1165 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/ListDataPolicies", in, out, opts...)
1166 if err != nil {
1167 return nil, err
1168 }
1169 return out, nil
1170 }
1171
1172 func (c *dataPolicyServiceClient) GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) {
1173 out := new(iampb.Policy)
1174 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/GetIamPolicy", in, out, opts...)
1175 if err != nil {
1176 return nil, err
1177 }
1178 return out, nil
1179 }
1180
1181 func (c *dataPolicyServiceClient) SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) {
1182 out := new(iampb.Policy)
1183 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/SetIamPolicy", in, out, opts...)
1184 if err != nil {
1185 return nil, err
1186 }
1187 return out, nil
1188 }
1189
1190 func (c *dataPolicyServiceClient) TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error) {
1191 out := new(iampb.TestIamPermissionsResponse)
1192 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/TestIamPermissions", in, out, opts...)
1193 if err != nil {
1194 return nil, err
1195 }
1196 return out, nil
1197 }
1198
1199 // DataPolicyServiceServer is the server API for DataPolicyService service.
1200 type DataPolicyServiceServer interface {
1201 // Creates a new data policy under a project with the given `dataPolicyId`
1202 // (used as the display name), policy tag, and data policy type.
1203 CreateDataPolicy(context.Context, *CreateDataPolicyRequest) (*DataPolicy, error)
1204 // Updates the metadata for an existing data policy. The target data policy
1205 // can be specified by the resource name.
1206 UpdateDataPolicy(context.Context, *UpdateDataPolicyRequest) (*DataPolicy, error)
1207 // Deletes the data policy specified by its resource name.
1208 DeleteDataPolicy(context.Context, *DeleteDataPolicyRequest) (*emptypb.Empty, error)
1209 // Gets the data policy specified by its resource name.
1210 GetDataPolicy(context.Context, *GetDataPolicyRequest) (*DataPolicy, error)
1211 // List all of the data policies in the specified parent project.
1212 ListDataPolicies(context.Context, *ListDataPoliciesRequest) (*ListDataPoliciesResponse, error)
1213 // Gets the IAM policy for the specified data policy.
1214 GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
1215 // Sets the IAM policy for the specified data policy.
1216 SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
1217 // Returns the caller's permission on the specified data policy resource.
1218 TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
1219 }
1220
1221 // UnimplementedDataPolicyServiceServer can be embedded to have forward compatible implementations.
1222 type UnimplementedDataPolicyServiceServer struct {
1223 }
1224
1225 func (*UnimplementedDataPolicyServiceServer) CreateDataPolicy(context.Context, *CreateDataPolicyRequest) (*DataPolicy, error) {
1226 return nil, status.Errorf(codes.Unimplemented, "method CreateDataPolicy not implemented")
1227 }
1228 func (*UnimplementedDataPolicyServiceServer) UpdateDataPolicy(context.Context, *UpdateDataPolicyRequest) (*DataPolicy, error) {
1229 return nil, status.Errorf(codes.Unimplemented, "method UpdateDataPolicy not implemented")
1230 }
1231 func (*UnimplementedDataPolicyServiceServer) DeleteDataPolicy(context.Context, *DeleteDataPolicyRequest) (*emptypb.Empty, error) {
1232 return nil, status.Errorf(codes.Unimplemented, "method DeleteDataPolicy not implemented")
1233 }
1234 func (*UnimplementedDataPolicyServiceServer) GetDataPolicy(context.Context, *GetDataPolicyRequest) (*DataPolicy, error) {
1235 return nil, status.Errorf(codes.Unimplemented, "method GetDataPolicy not implemented")
1236 }
1237 func (*UnimplementedDataPolicyServiceServer) ListDataPolicies(context.Context, *ListDataPoliciesRequest) (*ListDataPoliciesResponse, error) {
1238 return nil, status.Errorf(codes.Unimplemented, "method ListDataPolicies not implemented")
1239 }
1240 func (*UnimplementedDataPolicyServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error) {
1241 return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented")
1242 }
1243 func (*UnimplementedDataPolicyServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error) {
1244 return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented")
1245 }
1246 func (*UnimplementedDataPolicyServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error) {
1247 return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented")
1248 }
1249
1250 func RegisterDataPolicyServiceServer(s *grpc.Server, srv DataPolicyServiceServer) {
1251 s.RegisterService(&_DataPolicyService_serviceDesc, srv)
1252 }
1253
1254 func _DataPolicyService_CreateDataPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1255 in := new(CreateDataPolicyRequest)
1256 if err := dec(in); err != nil {
1257 return nil, err
1258 }
1259 if interceptor == nil {
1260 return srv.(DataPolicyServiceServer).CreateDataPolicy(ctx, in)
1261 }
1262 info := &grpc.UnaryServerInfo{
1263 Server: srv,
1264 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/CreateDataPolicy",
1265 }
1266 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1267 return srv.(DataPolicyServiceServer).CreateDataPolicy(ctx, req.(*CreateDataPolicyRequest))
1268 }
1269 return interceptor(ctx, in, info, handler)
1270 }
1271
1272 func _DataPolicyService_UpdateDataPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1273 in := new(UpdateDataPolicyRequest)
1274 if err := dec(in); err != nil {
1275 return nil, err
1276 }
1277 if interceptor == nil {
1278 return srv.(DataPolicyServiceServer).UpdateDataPolicy(ctx, in)
1279 }
1280 info := &grpc.UnaryServerInfo{
1281 Server: srv,
1282 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/UpdateDataPolicy",
1283 }
1284 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1285 return srv.(DataPolicyServiceServer).UpdateDataPolicy(ctx, req.(*UpdateDataPolicyRequest))
1286 }
1287 return interceptor(ctx, in, info, handler)
1288 }
1289
1290 func _DataPolicyService_DeleteDataPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1291 in := new(DeleteDataPolicyRequest)
1292 if err := dec(in); err != nil {
1293 return nil, err
1294 }
1295 if interceptor == nil {
1296 return srv.(DataPolicyServiceServer).DeleteDataPolicy(ctx, in)
1297 }
1298 info := &grpc.UnaryServerInfo{
1299 Server: srv,
1300 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/DeleteDataPolicy",
1301 }
1302 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1303 return srv.(DataPolicyServiceServer).DeleteDataPolicy(ctx, req.(*DeleteDataPolicyRequest))
1304 }
1305 return interceptor(ctx, in, info, handler)
1306 }
1307
1308 func _DataPolicyService_GetDataPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1309 in := new(GetDataPolicyRequest)
1310 if err := dec(in); err != nil {
1311 return nil, err
1312 }
1313 if interceptor == nil {
1314 return srv.(DataPolicyServiceServer).GetDataPolicy(ctx, in)
1315 }
1316 info := &grpc.UnaryServerInfo{
1317 Server: srv,
1318 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/GetDataPolicy",
1319 }
1320 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1321 return srv.(DataPolicyServiceServer).GetDataPolicy(ctx, req.(*GetDataPolicyRequest))
1322 }
1323 return interceptor(ctx, in, info, handler)
1324 }
1325
1326 func _DataPolicyService_ListDataPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1327 in := new(ListDataPoliciesRequest)
1328 if err := dec(in); err != nil {
1329 return nil, err
1330 }
1331 if interceptor == nil {
1332 return srv.(DataPolicyServiceServer).ListDataPolicies(ctx, in)
1333 }
1334 info := &grpc.UnaryServerInfo{
1335 Server: srv,
1336 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/ListDataPolicies",
1337 }
1338 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1339 return srv.(DataPolicyServiceServer).ListDataPolicies(ctx, req.(*ListDataPoliciesRequest))
1340 }
1341 return interceptor(ctx, in, info, handler)
1342 }
1343
1344 func _DataPolicyService_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1345 in := new(iampb.GetIamPolicyRequest)
1346 if err := dec(in); err != nil {
1347 return nil, err
1348 }
1349 if interceptor == nil {
1350 return srv.(DataPolicyServiceServer).GetIamPolicy(ctx, in)
1351 }
1352 info := &grpc.UnaryServerInfo{
1353 Server: srv,
1354 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/GetIamPolicy",
1355 }
1356 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1357 return srv.(DataPolicyServiceServer).GetIamPolicy(ctx, req.(*iampb.GetIamPolicyRequest))
1358 }
1359 return interceptor(ctx, in, info, handler)
1360 }
1361
1362 func _DataPolicyService_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1363 in := new(iampb.SetIamPolicyRequest)
1364 if err := dec(in); err != nil {
1365 return nil, err
1366 }
1367 if interceptor == nil {
1368 return srv.(DataPolicyServiceServer).SetIamPolicy(ctx, in)
1369 }
1370 info := &grpc.UnaryServerInfo{
1371 Server: srv,
1372 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/SetIamPolicy",
1373 }
1374 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1375 return srv.(DataPolicyServiceServer).SetIamPolicy(ctx, req.(*iampb.SetIamPolicyRequest))
1376 }
1377 return interceptor(ctx, in, info, handler)
1378 }
1379
1380 func _DataPolicyService_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1381 in := new(iampb.TestIamPermissionsRequest)
1382 if err := dec(in); err != nil {
1383 return nil, err
1384 }
1385 if interceptor == nil {
1386 return srv.(DataPolicyServiceServer).TestIamPermissions(ctx, in)
1387 }
1388 info := &grpc.UnaryServerInfo{
1389 Server: srv,
1390 FullMethod: "/google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService/TestIamPermissions",
1391 }
1392 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1393 return srv.(DataPolicyServiceServer).TestIamPermissions(ctx, req.(*iampb.TestIamPermissionsRequest))
1394 }
1395 return interceptor(ctx, in, info, handler)
1396 }
1397
1398 var _DataPolicyService_serviceDesc = grpc.ServiceDesc{
1399 ServiceName: "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService",
1400 HandlerType: (*DataPolicyServiceServer)(nil),
1401 Methods: []grpc.MethodDesc{
1402 {
1403 MethodName: "CreateDataPolicy",
1404 Handler: _DataPolicyService_CreateDataPolicy_Handler,
1405 },
1406 {
1407 MethodName: "UpdateDataPolicy",
1408 Handler: _DataPolicyService_UpdateDataPolicy_Handler,
1409 },
1410 {
1411 MethodName: "DeleteDataPolicy",
1412 Handler: _DataPolicyService_DeleteDataPolicy_Handler,
1413 },
1414 {
1415 MethodName: "GetDataPolicy",
1416 Handler: _DataPolicyService_GetDataPolicy_Handler,
1417 },
1418 {
1419 MethodName: "ListDataPolicies",
1420 Handler: _DataPolicyService_ListDataPolicies_Handler,
1421 },
1422 {
1423 MethodName: "GetIamPolicy",
1424 Handler: _DataPolicyService_GetIamPolicy_Handler,
1425 },
1426 {
1427 MethodName: "SetIamPolicy",
1428 Handler: _DataPolicyService_SetIamPolicy_Handler,
1429 },
1430 {
1431 MethodName: "TestIamPermissions",
1432 Handler: _DataPolicyService_TestIamPermissions_Handler,
1433 },
1434 },
1435 Streams: []grpc.StreamDesc{},
1436 Metadata: "google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto",
1437 }