| 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/partitioning_definition.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 |
// The partitioning information, which includes managed table, external table |
| 39 |
// and metastore partitioned table partition information. |
| 40 |
type PartitioningDefinition struct { |
| 41 |
state protoimpl.MessageState |
| 42 |
sizeCache protoimpl.SizeCache |
| 43 |
unknownFields protoimpl.UnknownFields |
| 44 |
|
| 45 |
// Optional. Details about each partitioning column. This field is output only |
| 46 |
// for all partitioning types other than metastore partitioned tables. |
| 47 |
// BigQuery native tables only support 1 partitioning column. Other table |
| 48 |
// types may support 0, 1 or more partitioning columns. |
| 49 |
// For metastore partitioned tables, the order must match the definition order |
| 50 |
// in the Hive Metastore, where it must match the physical layout of the |
| 51 |
// table. For example, |
| 52 |
// |
| 53 |
// CREATE TABLE a_table(id BIGINT, name STRING) |
| 54 |
// PARTITIONED BY (city STRING, state STRING). |
| 55 |
// |
| 56 |
// In this case the values must be ['city', 'state'] in that order. |
| 57 |
PartitionedColumn []*PartitionedColumn `protobuf:"bytes,1,rep,name=partitioned_column,json=partitionedColumn,proto3" json:"partitioned_column,omitempty"` |
| 58 |
} |
| 59 |
|
| 60 |
func (x *PartitioningDefinition) Reset() { |
| 61 |
*x = PartitioningDefinition{} |
| 62 |
mi := &file_google_cloud_bigquery_v2_partitioning_definition_proto_msgTypes[0] |
| 63 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 64 |
ms.StoreMessageInfo(mi) |
| 65 |
} |
| 66 |
|
| 67 |
func (x *PartitioningDefinition) String() string { |
| 68 |
return protoimpl.X.MessageStringOf(x) |
| 69 |
} |
| 70 |
|
| 71 |
func (*PartitioningDefinition) ProtoMessage() {} |
| 72 |
|
| 73 |
func (x *PartitioningDefinition) ProtoReflect() protoreflect.Message { |
| 74 |
mi := &file_google_cloud_bigquery_v2_partitioning_definition_proto_msgTypes[0] |
| 75 |
if x != nil { |
| 76 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 77 |
if ms.LoadMessageInfo() == nil { |
| 78 |
ms.StoreMessageInfo(mi) |
| 79 |
} |
| 80 |
return ms |
| 81 |
} |
| 82 |
return mi.MessageOf(x) |
| 83 |
} |
| 84 |
|
| 85 |
// Deprecated: Use PartitioningDefinition.ProtoReflect.Descriptor instead. |
| 86 |
func (*PartitioningDefinition) Descriptor() ([]byte, []int) { |
| 87 |
return file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescGZIP(), []int{0} |
| 88 |
} |
| 89 |
|
| 90 |
func (x *PartitioningDefinition) GetPartitionedColumn() []*PartitionedColumn { |
| 91 |
if x != nil { |
| 92 |
return x.PartitionedColumn |
| 93 |
} |
| 94 |
return nil |
| 95 |
} |
| 96 |
|
| 97 |
// The partitioning column information. |
| 98 |
type PartitionedColumn struct { |
| 99 |
state protoimpl.MessageState |
| 100 |
sizeCache protoimpl.SizeCache |
| 101 |
unknownFields protoimpl.UnknownFields |
| 102 |
|
| 103 |
// Required. The name of the partition column. |
| 104 |
Field *string `protobuf:"bytes,1,opt,name=field,proto3,oneof" json:"field,omitempty"` |
| 105 |
} |
| 106 |
|
| 107 |
func (x *PartitionedColumn) Reset() { |
| 108 |
*x = PartitionedColumn{} |
| 109 |
mi := &file_google_cloud_bigquery_v2_partitioning_definition_proto_msgTypes[1] |
| 110 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 111 |
ms.StoreMessageInfo(mi) |
| 112 |
} |
| 113 |
|
| 114 |
func (x *PartitionedColumn) String() string { |
| 115 |
return protoimpl.X.MessageStringOf(x) |
| 116 |
} |
| 117 |
|
| 118 |
func (*PartitionedColumn) ProtoMessage() {} |
| 119 |
|
| 120 |
func (x *PartitionedColumn) ProtoReflect() protoreflect.Message { |
| 121 |
mi := &file_google_cloud_bigquery_v2_partitioning_definition_proto_msgTypes[1] |
| 122 |
if x != nil { |
| 123 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 124 |
if ms.LoadMessageInfo() == nil { |
| 125 |
ms.StoreMessageInfo(mi) |
| 126 |
} |
| 127 |
return ms |
| 128 |
} |
| 129 |
return mi.MessageOf(x) |
| 130 |
} |
| 131 |
|
| 132 |
// Deprecated: Use PartitionedColumn.ProtoReflect.Descriptor instead. |
| 133 |
func (*PartitionedColumn) Descriptor() ([]byte, []int) { |
| 134 |
return file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescGZIP(), []int{1} |
| 135 |
} |
| 136 |
|
| 137 |
func (x *PartitionedColumn) GetField() string { |
| 138 |
if x != nil && x.Field != nil { |
| 139 |
return *x.Field |
| 140 |
} |
| 141 |
return "" |
| 142 |
} |
| 143 |
|
| 144 |
var File_google_cloud_bigquery_v2_partitioning_definition_proto protoreflect.FileDescriptor |
| 145 |
|
| 146 |
var file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDesc = []byte{ |
| 147 |
0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, |
| 148 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x69, |
| 149 |
0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, |
| 150 |
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 151 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, |
| 152 |
0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, |
| 153 |
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, |
| 154 |
0x6f, 0x74, 0x6f, 0x22, 0x79, 0x0a, 0x16, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, |
| 155 |
0x69, 0x6e, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5f, 0x0a, |
| 156 |
0x12, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6c, |
| 157 |
0x75, 0x6d, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 158 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, |
| 159 |
0x79, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, |
| 160 |
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x11, 0x70, 0x61, 0x72, |
| 161 |
0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x3d, |
| 162 |
0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x43, 0x6f, 0x6c, |
| 163 |
0x75, 0x6d, 0x6e, 0x12, 0x1e, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, |
| 164 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x48, 0x00, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 165 |
0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x7a, 0x0a, |
| 166 |
0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 167 |
0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x1b, 0x50, |
| 168 |
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, |
| 169 |
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, |
| 170 |
0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, |
| 171 |
0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, |
| 172 |
0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, |
| 173 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 174 |
0x33, |
| 175 |
} |
| 176 |
|
| 177 |
var ( |
| 178 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescOnce sync.Once |
| 179 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescData = file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDesc |
| 180 |
) |
| 181 |
|
| 182 |
func file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescGZIP() []byte { |
| 183 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescOnce.Do(func() { |
| 184 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescData) |
| 185 |
}) |
| 186 |
return file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDescData |
| 187 |
} |
| 188 |
|
| 189 |
var file_google_cloud_bigquery_v2_partitioning_definition_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 190 |
var file_google_cloud_bigquery_v2_partitioning_definition_proto_goTypes = []any{ |
| 191 |
(*PartitioningDefinition)(nil), // 0: google.cloud.bigquery.v2.PartitioningDefinition |
| 192 |
(*PartitionedColumn)(nil), // 1: google.cloud.bigquery.v2.PartitionedColumn |
| 193 |
} |
| 194 |
var file_google_cloud_bigquery_v2_partitioning_definition_proto_depIdxs = []int32{ |
| 195 |
1, // 0: google.cloud.bigquery.v2.PartitioningDefinition.partitioned_column:type_name -> google.cloud.bigquery.v2.PartitionedColumn |
| 196 |
1, // [1:1] is the sub-list for method output_type |
| 197 |
1, // [1:1] is the sub-list for method input_type |
| 198 |
1, // [1:1] is the sub-list for extension type_name |
| 199 |
1, // [1:1] is the sub-list for extension extendee |
| 200 |
0, // [0:1] is the sub-list for field type_name |
| 201 |
} |
| 202 |
|
| 203 |
func init() { file_google_cloud_bigquery_v2_partitioning_definition_proto_init() } |
| 204 |
func file_google_cloud_bigquery_v2_partitioning_definition_proto_init() { |
| 205 |
if File_google_cloud_bigquery_v2_partitioning_definition_proto != nil { |
| 206 |
return |
| 207 |
} |
| 208 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_msgTypes[1].OneofWrappers = []any{} |
| 209 |
type x struct{} |
| 210 |
out := protoimpl.TypeBuilder{ |
| 211 |
File: protoimpl.DescBuilder{ |
| 212 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 213 |
RawDescriptor: file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDesc, |
| 214 |
NumEnums: 0, |
| 215 |
NumMessages: 2, |
| 216 |
NumExtensions: 0, |
| 217 |
NumServices: 0, |
| 218 |
}, |
| 219 |
GoTypes: file_google_cloud_bigquery_v2_partitioning_definition_proto_goTypes, |
| 220 |
DependencyIndexes: file_google_cloud_bigquery_v2_partitioning_definition_proto_depIdxs, |
| 221 |
MessageInfos: file_google_cloud_bigquery_v2_partitioning_definition_proto_msgTypes, |
| 222 |
}.Build() |
| 223 |
File_google_cloud_bigquery_v2_partitioning_definition_proto = out.File |
| 224 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_rawDesc = nil |
| 225 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_goTypes = nil |
| 226 |
file_google_cloud_bigquery_v2_partitioning_definition_proto_depIdxs = nil |
| 227 |
} |