| 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/encryption_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 |
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" |
| 28 |
reflect "reflect" |
| 29 |
sync "sync" |
| 30 |
) |
| 31 |
|
| 32 |
const ( |
| 33 |
// Verify that this generated code is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 35 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 36 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 37 |
) |
| 38 |
|
| 39 |
// Configuration for Cloud KMS encryption settings. |
| 40 |
type EncryptionConfiguration struct { |
| 41 |
state protoimpl.MessageState |
| 42 |
sizeCache protoimpl.SizeCache |
| 43 |
unknownFields protoimpl.UnknownFields |
| 44 |
|
| 45 |
// Optional. Describes the Cloud KMS encryption key that will be used to |
| 46 |
// protect destination BigQuery table. The BigQuery Service Account associated |
| 47 |
// with your project requires access to this encryption key. |
| 48 |
KmsKeyName *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` |
| 49 |
} |
| 50 |
|
| 51 |
func (x *EncryptionConfiguration) Reset() { |
| 52 |
*x = EncryptionConfiguration{} |
| 53 |
mi := &file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes[0] |
| 54 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 55 |
ms.StoreMessageInfo(mi) |
| 56 |
} |
| 57 |
|
| 58 |
func (x *EncryptionConfiguration) String() string { |
| 59 |
return protoimpl.X.MessageStringOf(x) |
| 60 |
} |
| 61 |
|
| 62 |
func (*EncryptionConfiguration) ProtoMessage() {} |
| 63 |
|
| 64 |
func (x *EncryptionConfiguration) ProtoReflect() protoreflect.Message { |
| 65 |
mi := &file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes[0] |
| 66 |
if x != nil { |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
if ms.LoadMessageInfo() == nil { |
| 69 |
ms.StoreMessageInfo(mi) |
| 70 |
} |
| 71 |
return ms |
| 72 |
} |
| 73 |
return mi.MessageOf(x) |
| 74 |
} |
| 75 |
|
| 76 |
// Deprecated: Use EncryptionConfiguration.ProtoReflect.Descriptor instead. |
| 77 |
func (*EncryptionConfiguration) Descriptor() ([]byte, []int) { |
| 78 |
return file_google_cloud_bigquery_v2_encryption_config_proto_rawDescGZIP(), []int{0} |
| 79 |
} |
| 80 |
|
| 81 |
func (x *EncryptionConfiguration) GetKmsKeyName() *wrapperspb.StringValue { |
| 82 |
if x != nil { |
| 83 |
return x.KmsKeyName |
| 84 |
} |
| 85 |
return nil |
| 86 |
} |
| 87 |
|
| 88 |
var File_google_cloud_bigquery_v2_encryption_config_proto protoreflect.FileDescriptor |
| 89 |
|
| 90 |
var file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc = []byte{ |
| 91 |
0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, |
| 92 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, |
| 93 |
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, |
| 94 |
0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 95 |
0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, |
| 96 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, |
| 97 |
0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, |
| 98 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, |
| 99 |
0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a, |
| 100 |
0x17, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 101 |
0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x0c, 0x6b, 0x6d, 0x73, 0x5f, |
| 102 |
0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, |
| 103 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, |
| 104 |
0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, |
| 105 |
0x01, 0x52, 0x0a, 0x6b, 0x6d, 0x73, 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x72, 0x0a, |
| 106 |
0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 107 |
0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x15, 0x45, |
| 108 |
0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, |
| 109 |
0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 110 |
0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, |
| 111 |
0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, |
| 112 |
0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, |
| 113 |
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 114 |
} |
| 115 |
|
| 116 |
var ( |
| 117 |
file_google_cloud_bigquery_v2_encryption_config_proto_rawDescOnce sync.Once |
| 118 |
file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData = file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc |
| 119 |
) |
| 120 |
|
| 121 |
func file_google_cloud_bigquery_v2_encryption_config_proto_rawDescGZIP() []byte { |
| 122 |
file_google_cloud_bigquery_v2_encryption_config_proto_rawDescOnce.Do(func() { |
| 123 |
file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData) |
| 124 |
}) |
| 125 |
return file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData |
| 126 |
} |
| 127 |
|
| 128 |
var file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 129 |
var file_google_cloud_bigquery_v2_encryption_config_proto_goTypes = []any{ |
| 130 |
(*EncryptionConfiguration)(nil), // 0: google.cloud.bigquery.v2.EncryptionConfiguration |
| 131 |
(*wrapperspb.StringValue)(nil), // 1: google.protobuf.StringValue |
| 132 |
} |
| 133 |
var file_google_cloud_bigquery_v2_encryption_config_proto_depIdxs = []int32{ |
| 134 |
1, // 0: google.cloud.bigquery.v2.EncryptionConfiguration.kms_key_name:type_name -> google.protobuf.StringValue |
| 135 |
1, // [1:1] is the sub-list for method output_type |
| 136 |
1, // [1:1] is the sub-list for method input_type |
| 137 |
1, // [1:1] is the sub-list for extension type_name |
| 138 |
1, // [1:1] is the sub-list for extension extendee |
| 139 |
0, // [0:1] is the sub-list for field type_name |
| 140 |
} |
| 141 |
|
| 142 |
func init() { file_google_cloud_bigquery_v2_encryption_config_proto_init() } |
| 143 |
func file_google_cloud_bigquery_v2_encryption_config_proto_init() { |
| 144 |
if File_google_cloud_bigquery_v2_encryption_config_proto != nil { |
| 145 |
return |
| 146 |
} |
| 147 |
type x struct{} |
| 148 |
out := protoimpl.TypeBuilder{ |
| 149 |
File: protoimpl.DescBuilder{ |
| 150 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 151 |
RawDescriptor: file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc, |
| 152 |
NumEnums: 0, |
| 153 |
NumMessages: 1, |
| 154 |
NumExtensions: 0, |
| 155 |
NumServices: 0, |
| 156 |
}, |
| 157 |
GoTypes: file_google_cloud_bigquery_v2_encryption_config_proto_goTypes, |
| 158 |
DependencyIndexes: file_google_cloud_bigquery_v2_encryption_config_proto_depIdxs, |
| 159 |
MessageInfos: file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes, |
| 160 |
}.Build() |
| 161 |
File_google_cloud_bigquery_v2_encryption_config_proto = out.File |
| 162 |
file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc = nil |
| 163 |
file_google_cloud_bigquery_v2_encryption_config_proto_goTypes = nil |
| 164 |
file_google_cloud_bigquery_v2_encryption_config_proto_depIdxs = nil |
| 165 |
} |