| 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/range_partitioning.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 |
type RangePartitioning struct { |
| 39 |
state protoimpl.MessageState |
| 40 |
sizeCache protoimpl.SizeCache |
| 41 |
unknownFields protoimpl.UnknownFields |
| 42 |
|
| 43 |
// Required. The name of the column to partition the table on. It must be a |
| 44 |
// top-level, INT64 column whose mode is NULLABLE or REQUIRED. |
| 45 |
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` |
| 46 |
// Defines the ranges for range partitioning. |
| 47 |
Range *RangePartitioning_Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` |
| 48 |
} |
| 49 |
|
| 50 |
func (x *RangePartitioning) Reset() { |
| 51 |
*x = RangePartitioning{} |
| 52 |
mi := &file_google_cloud_bigquery_v2_range_partitioning_proto_msgTypes[0] |
| 53 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 54 |
ms.StoreMessageInfo(mi) |
| 55 |
} |
| 56 |
|
| 57 |
func (x *RangePartitioning) String() string { |
| 58 |
return protoimpl.X.MessageStringOf(x) |
| 59 |
} |
| 60 |
|
| 61 |
func (*RangePartitioning) ProtoMessage() {} |
| 62 |
|
| 63 |
func (x *RangePartitioning) ProtoReflect() protoreflect.Message { |
| 64 |
mi := &file_google_cloud_bigquery_v2_range_partitioning_proto_msgTypes[0] |
| 65 |
if x != nil { |
| 66 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 67 |
if ms.LoadMessageInfo() == nil { |
| 68 |
ms.StoreMessageInfo(mi) |
| 69 |
} |
| 70 |
return ms |
| 71 |
} |
| 72 |
return mi.MessageOf(x) |
| 73 |
} |
| 74 |
|
| 75 |
// Deprecated: Use RangePartitioning.ProtoReflect.Descriptor instead. |
| 76 |
func (*RangePartitioning) Descriptor() ([]byte, []int) { |
| 77 |
return file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescGZIP(), []int{0} |
| 78 |
} |
| 79 |
|
| 80 |
func (x *RangePartitioning) GetField() string { |
| 81 |
if x != nil { |
| 82 |
return x.Field |
| 83 |
} |
| 84 |
return "" |
| 85 |
} |
| 86 |
|
| 87 |
func (x *RangePartitioning) GetRange() *RangePartitioning_Range { |
| 88 |
if x != nil { |
| 89 |
return x.Range |
| 90 |
} |
| 91 |
return nil |
| 92 |
} |
| 93 |
|
| 94 |
// Defines the ranges for range partitioning. |
| 95 |
type RangePartitioning_Range struct { |
| 96 |
state protoimpl.MessageState |
| 97 |
sizeCache protoimpl.SizeCache |
| 98 |
unknownFields protoimpl.UnknownFields |
| 99 |
|
| 100 |
// Required. The start of range partitioning, inclusive. This field is an |
| 101 |
// INT64 value represented as a string. |
| 102 |
Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` |
| 103 |
// Required. The end of range partitioning, exclusive. This field is an |
| 104 |
// INT64 value represented as a string. |
| 105 |
End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` |
| 106 |
// Required. The width of each interval. This field is an INT64 value |
| 107 |
// represented as a string. |
| 108 |
Interval string `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` |
| 109 |
} |
| 110 |
|
| 111 |
func (x *RangePartitioning_Range) Reset() { |
| 112 |
*x = RangePartitioning_Range{} |
| 113 |
mi := &file_google_cloud_bigquery_v2_range_partitioning_proto_msgTypes[1] |
| 114 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 115 |
ms.StoreMessageInfo(mi) |
| 116 |
} |
| 117 |
|
| 118 |
func (x *RangePartitioning_Range) String() string { |
| 119 |
return protoimpl.X.MessageStringOf(x) |
| 120 |
} |
| 121 |
|
| 122 |
func (*RangePartitioning_Range) ProtoMessage() {} |
| 123 |
|
| 124 |
func (x *RangePartitioning_Range) ProtoReflect() protoreflect.Message { |
| 125 |
mi := &file_google_cloud_bigquery_v2_range_partitioning_proto_msgTypes[1] |
| 126 |
if x != nil { |
| 127 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 128 |
if ms.LoadMessageInfo() == nil { |
| 129 |
ms.StoreMessageInfo(mi) |
| 130 |
} |
| 131 |
return ms |
| 132 |
} |
| 133 |
return mi.MessageOf(x) |
| 134 |
} |
| 135 |
|
| 136 |
// Deprecated: Use RangePartitioning_Range.ProtoReflect.Descriptor instead. |
| 137 |
func (*RangePartitioning_Range) Descriptor() ([]byte, []int) { |
| 138 |
return file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescGZIP(), []int{0, 0} |
| 139 |
} |
| 140 |
|
| 141 |
func (x *RangePartitioning_Range) GetStart() string { |
| 142 |
if x != nil { |
| 143 |
return x.Start |
| 144 |
} |
| 145 |
return "" |
| 146 |
} |
| 147 |
|
| 148 |
func (x *RangePartitioning_Range) GetEnd() string { |
| 149 |
if x != nil { |
| 150 |
return x.End |
| 151 |
} |
| 152 |
return "" |
| 153 |
} |
| 154 |
|
| 155 |
func (x *RangePartitioning_Range) GetInterval() string { |
| 156 |
if x != nil { |
| 157 |
return x.Interval |
| 158 |
} |
| 159 |
return "" |
| 160 |
} |
| 161 |
|
| 162 |
var File_google_cloud_bigquery_v2_range_partitioning_proto protoreflect.FileDescriptor |
| 163 |
|
| 164 |
var file_google_cloud_bigquery_v2_range_partitioning_proto_rawDesc = []byte{ |
| 165 |
0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, |
| 166 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x61, 0x6e, 0x67, 0x65, |
| 167 |
0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, |
| 168 |
0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 169 |
0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, |
| 170 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, |
| 171 |
0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3, |
| 172 |
0x01, 0x0a, 0x11, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, |
| 173 |
0x6e, 0x69, 0x6e, 0x67, 0x12, 0x19, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, |
| 174 |
0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, |
| 175 |
0x47, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, |
| 176 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, |
| 177 |
0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x50, |
| 178 |
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x61, 0x6e, 0x67, |
| 179 |
0x65, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x5a, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, |
| 180 |
0x65, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 181 |
0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x15, 0x0a, 0x03, |
| 182 |
0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, |
| 183 |
0x65, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, |
| 184 |
0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, |
| 185 |
0x72, 0x76, 0x61, 0x6c, 0x42, 0x73, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 186 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, |
| 187 |
0x79, 0x2e, 0x76, 0x32, 0x42, 0x16, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, |
| 188 |
0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x3b, 0x63, 0x6c, |
| 189 |
0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, |
| 190 |
0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, |
| 191 |
0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, |
| 192 |
0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 193 |
0x33, |
| 194 |
} |
| 195 |
|
| 196 |
var ( |
| 197 |
file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescOnce sync.Once |
| 198 |
file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescData = file_google_cloud_bigquery_v2_range_partitioning_proto_rawDesc |
| 199 |
) |
| 200 |
|
| 201 |
func file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescGZIP() []byte { |
| 202 |
file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescOnce.Do(func() { |
| 203 |
file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescData) |
| 204 |
}) |
| 205 |
return file_google_cloud_bigquery_v2_range_partitioning_proto_rawDescData |
| 206 |
} |
| 207 |
|
| 208 |
var file_google_cloud_bigquery_v2_range_partitioning_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 209 |
var file_google_cloud_bigquery_v2_range_partitioning_proto_goTypes = []any{ |
| 210 |
(*RangePartitioning)(nil), // 0: google.cloud.bigquery.v2.RangePartitioning |
| 211 |
(*RangePartitioning_Range)(nil), // 1: google.cloud.bigquery.v2.RangePartitioning.Range |
| 212 |
} |
| 213 |
var file_google_cloud_bigquery_v2_range_partitioning_proto_depIdxs = []int32{ |
| 214 |
1, // 0: google.cloud.bigquery.v2.RangePartitioning.range:type_name -> google.cloud.bigquery.v2.RangePartitioning.Range |
| 215 |
1, // [1:1] is the sub-list for method output_type |
| 216 |
1, // [1:1] is the sub-list for method input_type |
| 217 |
1, // [1:1] is the sub-list for extension type_name |
| 218 |
1, // [1:1] is the sub-list for extension extendee |
| 219 |
0, // [0:1] is the sub-list for field type_name |
| 220 |
} |
| 221 |
|
| 222 |
func init() { file_google_cloud_bigquery_v2_range_partitioning_proto_init() } |
| 223 |
func file_google_cloud_bigquery_v2_range_partitioning_proto_init() { |
| 224 |
if File_google_cloud_bigquery_v2_range_partitioning_proto != nil { |
| 225 |
return |
| 226 |
} |
| 227 |
type x struct{} |
| 228 |
out := protoimpl.TypeBuilder{ |
| 229 |
File: protoimpl.DescBuilder{ |
| 230 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 231 |
RawDescriptor: file_google_cloud_bigquery_v2_range_partitioning_proto_rawDesc, |
| 232 |
NumEnums: 0, |
| 233 |
NumMessages: 2, |
| 234 |
NumExtensions: 0, |
| 235 |
NumServices: 0, |
| 236 |
}, |
| 237 |
GoTypes: file_google_cloud_bigquery_v2_range_partitioning_proto_goTypes, |
| 238 |
DependencyIndexes: file_google_cloud_bigquery_v2_range_partitioning_proto_depIdxs, |
| 239 |
MessageInfos: file_google_cloud_bigquery_v2_range_partitioning_proto_msgTypes, |
| 240 |
}.Build() |
| 241 |
File_google_cloud_bigquery_v2_range_partitioning_proto = out.File |
| 242 |
file_google_cloud_bigquery_v2_range_partitioning_proto_rawDesc = nil |
| 243 |
file_google_cloud_bigquery_v2_range_partitioning_proto_goTypes = nil |
| 244 |
file_google_cloud_bigquery_v2_range_partitioning_proto_depIdxs = nil |
| 245 |
} |