...

Source file src/google.golang.org/genproto/googleapis/cloud/bigquery/v2/encryption_config.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/bigquery/v2

     1  // Copyright 2021 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.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/cloud/bigquery/v2/encryption_config.proto
    20  
    21  package bigquery
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    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  	if protoimpl.UnsafeEnabled {
    54  		mi := &file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes[0]
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		ms.StoreMessageInfo(mi)
    57  	}
    58  }
    59  
    60  func (x *EncryptionConfiguration) String() string {
    61  	return protoimpl.X.MessageStringOf(x)
    62  }
    63  
    64  func (*EncryptionConfiguration) ProtoMessage() {}
    65  
    66  func (x *EncryptionConfiguration) ProtoReflect() protoreflect.Message {
    67  	mi := &file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes[0]
    68  	if protoimpl.UnsafeEnabled && x != nil {
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    70  		if ms.LoadMessageInfo() == nil {
    71  			ms.StoreMessageInfo(mi)
    72  		}
    73  		return ms
    74  	}
    75  	return mi.MessageOf(x)
    76  }
    77  
    78  // Deprecated: Use EncryptionConfiguration.ProtoReflect.Descriptor instead.
    79  func (*EncryptionConfiguration) Descriptor() ([]byte, []int) {
    80  	return file_google_cloud_bigquery_v2_encryption_config_proto_rawDescGZIP(), []int{0}
    81  }
    82  
    83  func (x *EncryptionConfiguration) GetKmsKeyName() *wrapperspb.StringValue {
    84  	if x != nil {
    85  		return x.KmsKeyName
    86  	}
    87  	return nil
    88  }
    89  
    90  var File_google_cloud_bigquery_v2_encryption_config_proto protoreflect.FileDescriptor
    91  
    92  var file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc = []byte{
    93  	0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
    94  	0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79,
    95  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
    96  	0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
    97  	0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f,
    98  	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62,
    99  	0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67,
   100  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77,
   101  	0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5e, 0x0a,
   102  	0x17, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   103  	0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x0c, 0x6b, 0x6d, 0x73, 0x5f,
   104  	0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,
   105  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   106  	0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41,
   107  	0x01, 0x52, 0x0a, 0x6b, 0x6d, 0x73, 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x77, 0x0a,
   108  	0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
   109  	0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x15, 0x45,
   110  	0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50,
   111  	0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
   112  	0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   113  	0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
   114  	0x64, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x3b, 0x62, 0x69,
   115  	0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   116  }
   117  
   118  var (
   119  	file_google_cloud_bigquery_v2_encryption_config_proto_rawDescOnce sync.Once
   120  	file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData = file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc
   121  )
   122  
   123  func file_google_cloud_bigquery_v2_encryption_config_proto_rawDescGZIP() []byte {
   124  	file_google_cloud_bigquery_v2_encryption_config_proto_rawDescOnce.Do(func() {
   125  		file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData)
   126  	})
   127  	return file_google_cloud_bigquery_v2_encryption_config_proto_rawDescData
   128  }
   129  
   130  var file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   131  var file_google_cloud_bigquery_v2_encryption_config_proto_goTypes = []interface{}{
   132  	(*EncryptionConfiguration)(nil), // 0: google.cloud.bigquery.v2.EncryptionConfiguration
   133  	(*wrapperspb.StringValue)(nil),  // 1: google.protobuf.StringValue
   134  }
   135  var file_google_cloud_bigquery_v2_encryption_config_proto_depIdxs = []int32{
   136  	1, // 0: google.cloud.bigquery.v2.EncryptionConfiguration.kms_key_name:type_name -> google.protobuf.StringValue
   137  	1, // [1:1] is the sub-list for method output_type
   138  	1, // [1:1] is the sub-list for method input_type
   139  	1, // [1:1] is the sub-list for extension type_name
   140  	1, // [1:1] is the sub-list for extension extendee
   141  	0, // [0:1] is the sub-list for field type_name
   142  }
   143  
   144  func init() { file_google_cloud_bigquery_v2_encryption_config_proto_init() }
   145  func file_google_cloud_bigquery_v2_encryption_config_proto_init() {
   146  	if File_google_cloud_bigquery_v2_encryption_config_proto != nil {
   147  		return
   148  	}
   149  	if !protoimpl.UnsafeEnabled {
   150  		file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   151  			switch v := v.(*EncryptionConfiguration); i {
   152  			case 0:
   153  				return &v.state
   154  			case 1:
   155  				return &v.sizeCache
   156  			case 2:
   157  				return &v.unknownFields
   158  			default:
   159  				return nil
   160  			}
   161  		}
   162  	}
   163  	type x struct{}
   164  	out := protoimpl.TypeBuilder{
   165  		File: protoimpl.DescBuilder{
   166  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   167  			RawDescriptor: file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc,
   168  			NumEnums:      0,
   169  			NumMessages:   1,
   170  			NumExtensions: 0,
   171  			NumServices:   0,
   172  		},
   173  		GoTypes:           file_google_cloud_bigquery_v2_encryption_config_proto_goTypes,
   174  		DependencyIndexes: file_google_cloud_bigquery_v2_encryption_config_proto_depIdxs,
   175  		MessageInfos:      file_google_cloud_bigquery_v2_encryption_config_proto_msgTypes,
   176  	}.Build()
   177  	File_google_cloud_bigquery_v2_encryption_config_proto = out.File
   178  	file_google_cloud_bigquery_v2_encryption_config_proto_rawDesc = nil
   179  	file_google_cloud_bigquery_v2_encryption_config_proto_goTypes = nil
   180  	file_google_cloud_bigquery_v2_encryption_config_proto_depIdxs = nil
   181  }
   182  

View as plain text