// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 // protoc v4.25.7 // source: google/cloud/bigquery/v2/table_constraints.proto package bigquerypb import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // Represents the primary key constraint on a table's columns. type PrimaryKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The columns that are composed of the primary key constraint. Columns []string `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` } func (x *PrimaryKey) Reset() { *x = PrimaryKey{} mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PrimaryKey) String() string { return protoimpl.X.MessageStringOf(x) } func (*PrimaryKey) ProtoMessage() {} func (x *PrimaryKey) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PrimaryKey.ProtoReflect.Descriptor instead. func (*PrimaryKey) Descriptor() ([]byte, []int) { return file_google_cloud_bigquery_v2_table_constraints_proto_rawDescGZIP(), []int{0} } func (x *PrimaryKey) GetColumns() []string { if x != nil { return x.Columns } return nil } // The pair of the foreign key column and primary key column. type ColumnReference struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The column that composes the foreign key. ReferencingColumn string `protobuf:"bytes,1,opt,name=referencing_column,json=referencingColumn,proto3" json:"referencing_column,omitempty"` // Required. The column in the primary key that are referenced by the // referencing_column. ReferencedColumn string `protobuf:"bytes,2,opt,name=referenced_column,json=referencedColumn,proto3" json:"referenced_column,omitempty"` } func (x *ColumnReference) Reset() { *x = ColumnReference{} mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ColumnReference) String() string { return protoimpl.X.MessageStringOf(x) } func (*ColumnReference) ProtoMessage() {} func (x *ColumnReference) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ColumnReference.ProtoReflect.Descriptor instead. func (*ColumnReference) Descriptor() ([]byte, []int) { return file_google_cloud_bigquery_v2_table_constraints_proto_rawDescGZIP(), []int{1} } func (x *ColumnReference) GetReferencingColumn() string { if x != nil { return x.ReferencingColumn } return "" } func (x *ColumnReference) GetReferencedColumn() string { if x != nil { return x.ReferencedColumn } return "" } // Represents a foreign key constraint on a table's columns. type ForeignKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Optional. Set only if the foreign key constraint is named. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The table that holds the primary key and is referenced by this // foreign key. ReferencedTable *TableReference `protobuf:"bytes,2,opt,name=referenced_table,json=referencedTable,proto3" json:"referenced_table,omitempty"` // Required. The columns that compose the foreign key. ColumnReferences []*ColumnReference `protobuf:"bytes,3,rep,name=column_references,json=columnReferences,proto3" json:"column_references,omitempty"` } func (x *ForeignKey) Reset() { *x = ForeignKey{} mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ForeignKey) String() string { return protoimpl.X.MessageStringOf(x) } func (*ForeignKey) ProtoMessage() {} func (x *ForeignKey) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ForeignKey.ProtoReflect.Descriptor instead. func (*ForeignKey) Descriptor() ([]byte, []int) { return file_google_cloud_bigquery_v2_table_constraints_proto_rawDescGZIP(), []int{2} } func (x *ForeignKey) GetName() string { if x != nil { return x.Name } return "" } func (x *ForeignKey) GetReferencedTable() *TableReference { if x != nil { return x.ReferencedTable } return nil } func (x *ForeignKey) GetColumnReferences() []*ColumnReference { if x != nil { return x.ColumnReferences } return nil } // The TableConstraints defines the primary key and foreign key. type TableConstraints struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Optional. Represents a primary key constraint on a table's columns. // Present only if the table has a primary key. // The primary key is not enforced. PrimaryKey *PrimaryKey `protobuf:"bytes,1,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` // Optional. Present only if the table has a foreign key. // The foreign key is not enforced. ForeignKeys []*ForeignKey `protobuf:"bytes,2,rep,name=foreign_keys,json=foreignKeys,proto3" json:"foreign_keys,omitempty"` } func (x *TableConstraints) Reset() { *x = TableConstraints{} mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TableConstraints) String() string { return protoimpl.X.MessageStringOf(x) } func (*TableConstraints) ProtoMessage() {} func (x *TableConstraints) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TableConstraints.ProtoReflect.Descriptor instead. func (*TableConstraints) Descriptor() ([]byte, []int) { return file_google_cloud_bigquery_v2_table_constraints_proto_rawDescGZIP(), []int{3} } func (x *TableConstraints) GetPrimaryKey() *PrimaryKey { if x != nil { return x.PrimaryKey } return nil } func (x *TableConstraints) GetForeignKeys() []*ForeignKey { if x != nil { return x.ForeignKeys } return nil } var File_google_cloud_bigquery_v2_table_constraints_proto protoreflect.FileDescriptor var file_google_cloud_bigquery_v2_table_constraints_proto_rawDesc = []byte{ 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2b, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x77, 0x0a, 0x0f, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x30, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0xdc, 0x01, 0x0a, 0x0a, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x58, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x5b, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xac, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x0c, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x42, 0x72, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x15, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_google_cloud_bigquery_v2_table_constraints_proto_rawDescOnce sync.Once file_google_cloud_bigquery_v2_table_constraints_proto_rawDescData = file_google_cloud_bigquery_v2_table_constraints_proto_rawDesc ) func file_google_cloud_bigquery_v2_table_constraints_proto_rawDescGZIP() []byte { file_google_cloud_bigquery_v2_table_constraints_proto_rawDescOnce.Do(func() { file_google_cloud_bigquery_v2_table_constraints_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_table_constraints_proto_rawDescData) }) return file_google_cloud_bigquery_v2_table_constraints_proto_rawDescData } var file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_google_cloud_bigquery_v2_table_constraints_proto_goTypes = []any{ (*PrimaryKey)(nil), // 0: google.cloud.bigquery.v2.PrimaryKey (*ColumnReference)(nil), // 1: google.cloud.bigquery.v2.ColumnReference (*ForeignKey)(nil), // 2: google.cloud.bigquery.v2.ForeignKey (*TableConstraints)(nil), // 3: google.cloud.bigquery.v2.TableConstraints (*TableReference)(nil), // 4: google.cloud.bigquery.v2.TableReference } var file_google_cloud_bigquery_v2_table_constraints_proto_depIdxs = []int32{ 4, // 0: google.cloud.bigquery.v2.ForeignKey.referenced_table:type_name -> google.cloud.bigquery.v2.TableReference 1, // 1: google.cloud.bigquery.v2.ForeignKey.column_references:type_name -> google.cloud.bigquery.v2.ColumnReference 0, // 2: google.cloud.bigquery.v2.TableConstraints.primary_key:type_name -> google.cloud.bigquery.v2.PrimaryKey 2, // 3: google.cloud.bigquery.v2.TableConstraints.foreign_keys:type_name -> google.cloud.bigquery.v2.ForeignKey 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_google_cloud_bigquery_v2_table_constraints_proto_init() } func file_google_cloud_bigquery_v2_table_constraints_proto_init() { if File_google_cloud_bigquery_v2_table_constraints_proto != nil { return } file_google_cloud_bigquery_v2_table_reference_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_cloud_bigquery_v2_table_constraints_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, GoTypes: file_google_cloud_bigquery_v2_table_constraints_proto_goTypes, DependencyIndexes: file_google_cloud_bigquery_v2_table_constraints_proto_depIdxs, MessageInfos: file_google_cloud_bigquery_v2_table_constraints_proto_msgTypes, }.Build() File_google_cloud_bigquery_v2_table_constraints_proto = out.File file_google_cloud_bigquery_v2_table_constraints_proto_rawDesc = nil file_google_cloud_bigquery_v2_table_constraints_proto_goTypes = nil file_google_cloud_bigquery_v2_table_constraints_proto_depIdxs = nil }