Debian Codegraph @

bigquery/v2/apiv2/bigquerypb/time_partitioning.pb.go

raw
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/time_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 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
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
39 type TimePartitioning struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Required. The supported types are DAY, HOUR, MONTH, and YEAR, which will
45 // generate one partition per day, hour, month, and year, respectively.
46 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
47 // Optional. Number of milliseconds for which to keep the storage for a
48 // partition.
49 // A wrapper is used here because 0 is an invalid value.
50 ExpirationMs *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=expiration_ms,json=expirationMs,proto3" json:"expiration_ms,omitempty"`
51 // Optional. If not set, the table is partitioned by pseudo
52 // column '_PARTITIONTIME'; if set, the table is partitioned by this field.
53 // The field must be a top-level TIMESTAMP or DATE field. Its mode must be
54 // NULLABLE or REQUIRED.
55 // A wrapper is used here because an empty string is an invalid value.
56 Field *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
57 }
58
59 func (x *TimePartitioning) Reset() {
60 *x = TimePartitioning{}
61 mi := &file_google_cloud_bigquery_v2_time_partitioning_proto_msgTypes[0]
62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63 ms.StoreMessageInfo(mi)
64 }
65
66 func (x *TimePartitioning) String() string {
67 return protoimpl.X.MessageStringOf(x)
68 }
69
70 func (*TimePartitioning) ProtoMessage() {}
71
72 func (x *TimePartitioning) ProtoReflect() protoreflect.Message {
73 mi := &file_google_cloud_bigquery_v2_time_partitioning_proto_msgTypes[0]
74 if x != nil {
75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76 if ms.LoadMessageInfo() == nil {
77 ms.StoreMessageInfo(mi)
78 }
79 return ms
80 }
81 return mi.MessageOf(x)
82 }
83
84 // Deprecated: Use TimePartitioning.ProtoReflect.Descriptor instead.
85 func (*TimePartitioning) Descriptor() ([]byte, []int) {
86 return file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescGZIP(), []int{0}
87 }
88
89 func (x *TimePartitioning) GetType() string {
90 if x != nil {
91 return x.Type
92 }
93 return ""
94 }
95
96 func (x *TimePartitioning) GetExpirationMs() *wrapperspb.Int64Value {
97 if x != nil {
98 return x.ExpirationMs
99 }
100 return nil
101 }
102
103 func (x *TimePartitioning) GetField() *wrapperspb.StringValue {
104 if x != nil {
105 return x.Field
106 }
107 return nil
108 }
109
110 var File_google_cloud_bigquery_v2_time_partitioning_proto protoreflect.FileDescriptor
111
112 var file_google_cloud_bigquery_v2_time_partitioning_proto_rawDesc = []byte{
113 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
114 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x5f,
115 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f,
116 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
117 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f,
118 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62,
119 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67,
120 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77,
121 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x01,
122 0x0a, 0x10, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69,
123 0x6e, 0x67, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
124 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x65,
125 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01,
126 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
127 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42,
128 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
129 0x4d, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
130 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
131 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42,
132 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x72, 0x0a, 0x1c, 0x63,
133 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
134 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x42, 0x15, 0x54, 0x69, 0x6d,
135 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f,
136 0x74, 0x6f, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
137 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79,
138 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65,
139 0x72, 0x79, 0x70, 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x62,
140 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
141 }
142
143 var (
144 file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescOnce sync.Once
145 file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescData = file_google_cloud_bigquery_v2_time_partitioning_proto_rawDesc
146 )
147
148 func file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescGZIP() []byte {
149 file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescOnce.Do(func() {
150 file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescData)
151 })
152 return file_google_cloud_bigquery_v2_time_partitioning_proto_rawDescData
153 }
154
155 var file_google_cloud_bigquery_v2_time_partitioning_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
156 var file_google_cloud_bigquery_v2_time_partitioning_proto_goTypes = []any{
157 (*TimePartitioning)(nil), // 0: google.cloud.bigquery.v2.TimePartitioning
158 (*wrapperspb.Int64Value)(nil), // 1: google.protobuf.Int64Value
159 (*wrapperspb.StringValue)(nil), // 2: google.protobuf.StringValue
160 }
161 var file_google_cloud_bigquery_v2_time_partitioning_proto_depIdxs = []int32{
162 1, // 0: google.cloud.bigquery.v2.TimePartitioning.expiration_ms:type_name -> google.protobuf.Int64Value
163 2, // 1: google.cloud.bigquery.v2.TimePartitioning.field:type_name -> google.protobuf.StringValue
164 2, // [2:2] is the sub-list for method output_type
165 2, // [2:2] is the sub-list for method input_type
166 2, // [2:2] is the sub-list for extension type_name
167 2, // [2:2] is the sub-list for extension extendee
168 0, // [0:2] is the sub-list for field type_name
169 }
170
171 func init() { file_google_cloud_bigquery_v2_time_partitioning_proto_init() }
172 func file_google_cloud_bigquery_v2_time_partitioning_proto_init() {
173 if File_google_cloud_bigquery_v2_time_partitioning_proto != nil {
174 return
175 }
176 type x struct{}
177 out := protoimpl.TypeBuilder{
178 File: protoimpl.DescBuilder{
179 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
180 RawDescriptor: file_google_cloud_bigquery_v2_time_partitioning_proto_rawDesc,
181 NumEnums: 0,
182 NumMessages: 1,
183 NumExtensions: 0,
184 NumServices: 0,
185 },
186 GoTypes: file_google_cloud_bigquery_v2_time_partitioning_proto_goTypes,
187 DependencyIndexes: file_google_cloud_bigquery_v2_time_partitioning_proto_depIdxs,
188 MessageInfos: file_google_cloud_bigquery_v2_time_partitioning_proto_msgTypes,
189 }.Build()
190 File_google_cloud_bigquery_v2_time_partitioning_proto = out.File
191 file_google_cloud_bigquery_v2_time_partitioning_proto_rawDesc = nil
192 file_google_cloud_bigquery_v2_time_partitioning_proto_goTypes = nil
193 file_google_cloud_bigquery_v2_time_partitioning_proto_depIdxs = nil
194 }