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/table_reference.proto 20 21package bigquery 22 23import ( 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) 31 32const ( 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 39type TableReference struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // Required. The ID of the project containing this table. 45 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` 46 // Required. The ID of the dataset containing this table. 47 DatasetId string `protobuf:"bytes,2,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` 48 // Required. The ID of the table. The ID must contain only 49 // letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum 50 // length is 1,024 characters. Certain operations allow 51 // suffixing of the table ID with a partition decorator, such as 52 // `sample_table$20190123`. 53 TableId string `protobuf:"bytes,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` 54 // The alternative field that will be used when ESF is not able to translate 55 // the received data to the project_id field. 56 ProjectIdAlternative []string `protobuf:"bytes,4,rep,name=project_id_alternative,json=projectIdAlternative,proto3" json:"project_id_alternative,omitempty"` 57 // The alternative field that will be used when ESF is not able to translate 58 // the received data to the project_id field. 59 DatasetIdAlternative []string `protobuf:"bytes,5,rep,name=dataset_id_alternative,json=datasetIdAlternative,proto3" json:"dataset_id_alternative,omitempty"` 60 // The alternative field that will be used when ESF is not able to translate 61 // the received data to the project_id field. 62 TableIdAlternative []string `protobuf:"bytes,6,rep,name=table_id_alternative,json=tableIdAlternative,proto3" json:"table_id_alternative,omitempty"` 63} 64 65func (x *TableReference) Reset() { 66 *x = TableReference{} 67 if protoimpl.UnsafeEnabled { 68 mi := &file_google_cloud_bigquery_v2_table_reference_proto_msgTypes[0] 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 ms.StoreMessageInfo(mi) 71 } 72} 73 74func (x *TableReference) String() string { 75 return protoimpl.X.MessageStringOf(x) 76} 77 78func (*TableReference) ProtoMessage() {} 79 80func (x *TableReference) ProtoReflect() protoreflect.Message { 81 mi := &file_google_cloud_bigquery_v2_table_reference_proto_msgTypes[0] 82 if protoimpl.UnsafeEnabled && x != nil { 83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 84 if ms.LoadMessageInfo() == nil { 85 ms.StoreMessageInfo(mi) 86 } 87 return ms 88 } 89 return mi.MessageOf(x) 90} 91 92// Deprecated: Use TableReference.ProtoReflect.Descriptor instead. 93func (*TableReference) Descriptor() ([]byte, []int) { 94 return file_google_cloud_bigquery_v2_table_reference_proto_rawDescGZIP(), []int{0} 95} 96 97func (x *TableReference) GetProjectId() string { 98 if x != nil { 99 return x.ProjectId 100 } 101 return "" 102} 103 104func (x *TableReference) GetDatasetId() string { 105 if x != nil { 106 return x.DatasetId 107 } 108 return "" 109} 110 111func (x *TableReference) GetTableId() string { 112 if x != nil { 113 return x.TableId 114 } 115 return "" 116} 117 118func (x *TableReference) GetProjectIdAlternative() []string { 119 if x != nil { 120 return x.ProjectIdAlternative 121 } 122 return nil 123} 124 125func (x *TableReference) GetDatasetIdAlternative() []string { 126 if x != nil { 127 return x.DatasetIdAlternative 128 } 129 return nil 130} 131 132func (x *TableReference) GetTableIdAlternative() []string { 133 if x != nil { 134 return x.TableIdAlternative 135 } 136 return nil 137} 138 139var File_google_cloud_bigquery_v2_table_reference_proto protoreflect.FileDescriptor 140 141var file_google_cloud_bigquery_v2_table_reference_proto_rawDesc = []byte{ 142 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 143 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 144 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 145 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 146 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 147 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 148 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 149 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 150 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x02, 0x0a, 0x0e, 0x54, 0x61, 151 0x62, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0a, 152 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 153 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 154 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 155 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x73, 156 0x65, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 157 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x74, 0x61, 0x62, 158 0x6c, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 159 0x69, 0x64, 0x5f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 160 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x41, 161 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x61, 162 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 163 0x74, 0x69, 0x76, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x64, 0x61, 0x74, 0x61, 164 0x73, 0x65, 0x74, 0x49, 0x64, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 165 0x12, 0x30, 0x0a, 0x14, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x5f, 0x61, 0x6c, 0x74, 166 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 167 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 168 0x76, 0x65, 0x42, 0x75, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 169 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 170 0x76, 0x32, 0x42, 0x13, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 171 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 172 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 173 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 174 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 175 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 176 0x33, 177} 178 179var ( 180 file_google_cloud_bigquery_v2_table_reference_proto_rawDescOnce sync.Once 181 file_google_cloud_bigquery_v2_table_reference_proto_rawDescData = file_google_cloud_bigquery_v2_table_reference_proto_rawDesc 182) 183 184func file_google_cloud_bigquery_v2_table_reference_proto_rawDescGZIP() []byte { 185 file_google_cloud_bigquery_v2_table_reference_proto_rawDescOnce.Do(func() { 186 file_google_cloud_bigquery_v2_table_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_table_reference_proto_rawDescData) 187 }) 188 return file_google_cloud_bigquery_v2_table_reference_proto_rawDescData 189} 190 191var file_google_cloud_bigquery_v2_table_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 192var file_google_cloud_bigquery_v2_table_reference_proto_goTypes = []interface{}{ 193 (*TableReference)(nil), // 0: google.cloud.bigquery.v2.TableReference 194} 195var file_google_cloud_bigquery_v2_table_reference_proto_depIdxs = []int32{ 196 0, // [0:0] is the sub-list for method output_type 197 0, // [0:0] is the sub-list for method input_type 198 0, // [0:0] is the sub-list for extension type_name 199 0, // [0:0] is the sub-list for extension extendee 200 0, // [0:0] is the sub-list for field type_name 201} 202 203func init() { file_google_cloud_bigquery_v2_table_reference_proto_init() } 204func file_google_cloud_bigquery_v2_table_reference_proto_init() { 205 if File_google_cloud_bigquery_v2_table_reference_proto != nil { 206 return 207 } 208 if !protoimpl.UnsafeEnabled { 209 file_google_cloud_bigquery_v2_table_reference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*TableReference); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 } 222 type x struct{} 223 out := protoimpl.TypeBuilder{ 224 File: protoimpl.DescBuilder{ 225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 226 RawDescriptor: file_google_cloud_bigquery_v2_table_reference_proto_rawDesc, 227 NumEnums: 0, 228 NumMessages: 1, 229 NumExtensions: 0, 230 NumServices: 0, 231 }, 232 GoTypes: file_google_cloud_bigquery_v2_table_reference_proto_goTypes, 233 DependencyIndexes: file_google_cloud_bigquery_v2_table_reference_proto_depIdxs, 234 MessageInfos: file_google_cloud_bigquery_v2_table_reference_proto_msgTypes, 235 }.Build() 236 File_google_cloud_bigquery_v2_table_reference_proto = out.File 237 file_google_cloud_bigquery_v2_table_reference_proto_rawDesc = nil 238 file_google_cloud_bigquery_v2_table_reference_proto_goTypes = nil 239 file_google_cloud_bigquery_v2_table_reference_proto_depIdxs = nil 240} 241