| 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/v2/restriction_config.proto |
| 20 |
|
| 21 |
package bigquerypb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
reflect "reflect" |
| 28 |
sync "sync" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// RestrictionType specifies the type of dataset/table restriction. |
| 39 |
type RestrictionConfig_RestrictionType int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// Should never be used. |
| 43 |
RestrictionConfig_RESTRICTION_TYPE_UNSPECIFIED RestrictionConfig_RestrictionType = 0 |
| 44 |
// Restrict data egress. See [Data |
| 45 |
// egress](https://cloud.google.com/bigquery/docs/analytics-hub-introduction#data_egress) |
| 46 |
// for more details. |
| 47 |
RestrictionConfig_RESTRICTED_DATA_EGRESS RestrictionConfig_RestrictionType = 1 |
| 48 |
) |
| 49 |
|
| 50 |
// Enum value maps for RestrictionConfig_RestrictionType. |
| 51 |
var ( |
| 52 |
RestrictionConfig_RestrictionType_name = map[int32]string{ |
| 53 |
0: "RESTRICTION_TYPE_UNSPECIFIED", |
| 54 |
1: "RESTRICTED_DATA_EGRESS", |
| 55 |
} |
| 56 |
RestrictionConfig_RestrictionType_value = map[string]int32{ |
| 57 |
"RESTRICTION_TYPE_UNSPECIFIED": 0, |
| 58 |
"RESTRICTED_DATA_EGRESS": 1, |
| 59 |
} |
| 60 |
) |
| 61 |
|
| 62 |
func (x RestrictionConfig_RestrictionType) Enum() *RestrictionConfig_RestrictionType { |
| 63 |
p := new(RestrictionConfig_RestrictionType) |
| 64 |
*p = x |
| 65 |
return p |
| 66 |
} |
| 67 |
|
| 68 |
func (x RestrictionConfig_RestrictionType) String() string { |
| 69 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 70 |
} |
| 71 |
|
| 72 |
func (RestrictionConfig_RestrictionType) Descriptor() protoreflect.EnumDescriptor { |
| 73 |
return file_google_cloud_bigquery_v2_restriction_config_proto_enumTypes[0].Descriptor() |
| 74 |
} |
| 75 |
|
| 76 |
func (RestrictionConfig_RestrictionType) Type() protoreflect.EnumType { |
| 77 |
return &file_google_cloud_bigquery_v2_restriction_config_proto_enumTypes[0] |
| 78 |
} |
| 79 |
|
| 80 |
func (x RestrictionConfig_RestrictionType) Number() protoreflect.EnumNumber { |
| 81 |
return protoreflect.EnumNumber(x) |
| 82 |
} |
| 83 |
|
| 84 |
// Deprecated: Use RestrictionConfig_RestrictionType.Descriptor instead. |
| 85 |
func (RestrictionConfig_RestrictionType) EnumDescriptor() ([]byte, []int) { |
| 86 |
return file_google_cloud_bigquery_v2_restriction_config_proto_rawDescGZIP(), []int{0, 0} |
| 87 |
} |
| 88 |
|
| 89 |
type RestrictionConfig struct { |
| 90 |
state protoimpl.MessageState |
| 91 |
sizeCache protoimpl.SizeCache |
| 92 |
unknownFields protoimpl.UnknownFields |
| 93 |
|
| 94 |
// Output only. Specifies the type of dataset/table restriction. |
| 95 |
Type RestrictionConfig_RestrictionType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.bigquery.v2.RestrictionConfig_RestrictionType" json:"type,omitempty"` |
| 96 |
} |
| 97 |
|
| 98 |
func (x *RestrictionConfig) Reset() { |
| 99 |
*x = RestrictionConfig{} |
| 100 |
mi := &file_google_cloud_bigquery_v2_restriction_config_proto_msgTypes[0] |
| 101 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 102 |
ms.StoreMessageInfo(mi) |
| 103 |
} |
| 104 |
|
| 105 |
func (x *RestrictionConfig) String() string { |
| 106 |
return protoimpl.X.MessageStringOf(x) |
| 107 |
} |
| 108 |
|
| 109 |
func (*RestrictionConfig) ProtoMessage() {} |
| 110 |
|
| 111 |
func (x *RestrictionConfig) ProtoReflect() protoreflect.Message { |
| 112 |
mi := &file_google_cloud_bigquery_v2_restriction_config_proto_msgTypes[0] |
| 113 |
if x != nil { |
| 114 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 115 |
if ms.LoadMessageInfo() == nil { |
| 116 |
ms.StoreMessageInfo(mi) |
| 117 |
} |
| 118 |
return ms |
| 119 |
} |
| 120 |
return mi.MessageOf(x) |
| 121 |
} |
| 122 |
|
| 123 |
// Deprecated: Use RestrictionConfig.ProtoReflect.Descriptor instead. |
| 124 |
func (*RestrictionConfig) Descriptor() ([]byte, []int) { |
| 125 |
return file_google_cloud_bigquery_v2_restriction_config_proto_rawDescGZIP(), []int{0} |
| 126 |
} |
| 127 |
|
| 128 |
func (x *RestrictionConfig) GetType() RestrictionConfig_RestrictionType { |
| 129 |
if x != nil { |
| 130 |
return x.Type |
| 131 |
} |
| 132 |
return RestrictionConfig_RESTRICTION_TYPE_UNSPECIFIED |
| 133 |
} |
| 134 |
|
| 135 |
var File_google_cloud_bigquery_v2_restriction_config_proto protoreflect.FileDescriptor |
| 136 |
|
| 137 |
var file_google_cloud_bigquery_v2_restriction_config_proto_rawDesc = []byte{ |
| 138 |
0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, |
| 139 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x74, 0x72, |
| 140 |
0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, |
| 141 |
0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 142 |
0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, |
| 143 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, |
| 144 |
0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, |
| 145 |
0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, |
| 146 |
0x6e, 0x66, 0x69, 0x67, 0x12, 0x54, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 147 |
0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 148 |
0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, |
| 149 |
0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, |
| 150 |
0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, |
| 151 |
0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x0f, 0x52, 0x65, |
| 152 |
0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, |
| 153 |
0x1c, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, |
| 154 |
0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, |
| 155 |
0x1a, 0x0a, 0x16, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x44, 0x41, |
| 156 |
0x54, 0x41, 0x5f, 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x01, 0x42, 0x75, 0x0a, 0x1c, 0x63, |
| 157 |
0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 158 |
0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x16, 0x52, 0x65, 0x73, |
| 159 |
0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, |
| 160 |
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, |
| 161 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, |
| 162 |
0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, |
| 163 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, |
| 164 |
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 165 |
} |
| 166 |
|
| 167 |
var ( |
| 168 |
file_google_cloud_bigquery_v2_restriction_config_proto_rawDescOnce sync.Once |
| 169 |
file_google_cloud_bigquery_v2_restriction_config_proto_rawDescData = file_google_cloud_bigquery_v2_restriction_config_proto_rawDesc |
| 170 |
) |
| 171 |
|
| 172 |
func file_google_cloud_bigquery_v2_restriction_config_proto_rawDescGZIP() []byte { |
| 173 |
file_google_cloud_bigquery_v2_restriction_config_proto_rawDescOnce.Do(func() { |
| 174 |
file_google_cloud_bigquery_v2_restriction_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_restriction_config_proto_rawDescData) |
| 175 |
}) |
| 176 |
return file_google_cloud_bigquery_v2_restriction_config_proto_rawDescData |
| 177 |
} |
| 178 |
|
| 179 |
var file_google_cloud_bigquery_v2_restriction_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 180 |
var file_google_cloud_bigquery_v2_restriction_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 181 |
var file_google_cloud_bigquery_v2_restriction_config_proto_goTypes = []any{ |
| 182 |
(RestrictionConfig_RestrictionType)(0), // 0: google.cloud.bigquery.v2.RestrictionConfig.RestrictionType |
| 183 |
(*RestrictionConfig)(nil), // 1: google.cloud.bigquery.v2.RestrictionConfig |
| 184 |
} |
| 185 |
var file_google_cloud_bigquery_v2_restriction_config_proto_depIdxs = []int32{ |
| 186 |
0, // 0: google.cloud.bigquery.v2.RestrictionConfig.type:type_name -> google.cloud.bigquery.v2.RestrictionConfig.RestrictionType |
| 187 |
1, // [1:1] is the sub-list for method output_type |
| 188 |
1, // [1:1] is the sub-list for method input_type |
| 189 |
1, // [1:1] is the sub-list for extension type_name |
| 190 |
1, // [1:1] is the sub-list for extension extendee |
| 191 |
0, // [0:1] is the sub-list for field type_name |
| 192 |
} |
| 193 |
|
| 194 |
func init() { file_google_cloud_bigquery_v2_restriction_config_proto_init() } |
| 195 |
func file_google_cloud_bigquery_v2_restriction_config_proto_init() { |
| 196 |
if File_google_cloud_bigquery_v2_restriction_config_proto != nil { |
| 197 |
return |
| 198 |
} |
| 199 |
type x struct{} |
| 200 |
out := protoimpl.TypeBuilder{ |
| 201 |
File: protoimpl.DescBuilder{ |
| 202 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 203 |
RawDescriptor: file_google_cloud_bigquery_v2_restriction_config_proto_rawDesc, |
| 204 |
NumEnums: 1, |
| 205 |
NumMessages: 1, |
| 206 |
NumExtensions: 0, |
| 207 |
NumServices: 0, |
| 208 |
}, |
| 209 |
GoTypes: file_google_cloud_bigquery_v2_restriction_config_proto_goTypes, |
| 210 |
DependencyIndexes: file_google_cloud_bigquery_v2_restriction_config_proto_depIdxs, |
| 211 |
EnumInfos: file_google_cloud_bigquery_v2_restriction_config_proto_enumTypes, |
| 212 |
MessageInfos: file_google_cloud_bigquery_v2_restriction_config_proto_msgTypes, |
| 213 |
}.Build() |
| 214 |
File_google_cloud_bigquery_v2_restriction_config_proto = out.File |
| 215 |
file_google_cloud_bigquery_v2_restriction_config_proto_rawDesc = nil |
| 216 |
file_google_cloud_bigquery_v2_restriction_config_proto_goTypes = nil |
| 217 |
file_google_cloud_bigquery_v2_restriction_config_proto_depIdxs = nil |
| 218 |
} |