Debian Codegraph @

alloydb/apiv1/alloydbpb/data_model.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/alloydb/v1/data_model.proto
20
21 package alloydbpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // SqlResult represents the result for the execution of a sql statement.
38 type SqlResult struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // List of columns included in the result. This also includes the data type
44 // of the column.
45 Columns []*SqlResultColumn `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
46 // Rows returned by the SQL statement.
47 Rows []*SqlResultRow `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
48 }
49
50 func (x *SqlResult) Reset() {
51 *x = SqlResult{}
52 mi := &file_google_cloud_alloydb_v1_data_model_proto_msgTypes[0]
53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54 ms.StoreMessageInfo(mi)
55 }
56
57 func (x *SqlResult) String() string {
58 return protoimpl.X.MessageStringOf(x)
59 }
60
61 func (*SqlResult) ProtoMessage() {}
62
63 func (x *SqlResult) ProtoReflect() protoreflect.Message {
64 mi := &file_google_cloud_alloydb_v1_data_model_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 SqlResult.ProtoReflect.Descriptor instead.
76 func (*SqlResult) Descriptor() ([]byte, []int) {
77 return file_google_cloud_alloydb_v1_data_model_proto_rawDescGZIP(), []int{0}
78 }
79
80 func (x *SqlResult) GetColumns() []*SqlResultColumn {
81 if x != nil {
82 return x.Columns
83 }
84 return nil
85 }
86
87 func (x *SqlResult) GetRows() []*SqlResultRow {
88 if x != nil {
89 return x.Rows
90 }
91 return nil
92 }
93
94 // Contains the name and datatype of a column in a SQL Result.
95 type SqlResultColumn struct {
96 state protoimpl.MessageState
97 sizeCache protoimpl.SizeCache
98 unknownFields protoimpl.UnknownFields
99
100 // Name of the column.
101 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
102 // Datatype of the column as reported by the postgres driver.
103 // Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
104 // "INT", and "BIGINT".
105 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
106 }
107
108 func (x *SqlResultColumn) Reset() {
109 *x = SqlResultColumn{}
110 mi := &file_google_cloud_alloydb_v1_data_model_proto_msgTypes[1]
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 ms.StoreMessageInfo(mi)
113 }
114
115 func (x *SqlResultColumn) String() string {
116 return protoimpl.X.MessageStringOf(x)
117 }
118
119 func (*SqlResultColumn) ProtoMessage() {}
120
121 func (x *SqlResultColumn) ProtoReflect() protoreflect.Message {
122 mi := &file_google_cloud_alloydb_v1_data_model_proto_msgTypes[1]
123 if x != nil {
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 if ms.LoadMessageInfo() == nil {
126 ms.StoreMessageInfo(mi)
127 }
128 return ms
129 }
130 return mi.MessageOf(x)
131 }
132
133 // Deprecated: Use SqlResultColumn.ProtoReflect.Descriptor instead.
134 func (*SqlResultColumn) Descriptor() ([]byte, []int) {
135 return file_google_cloud_alloydb_v1_data_model_proto_rawDescGZIP(), []int{1}
136 }
137
138 func (x *SqlResultColumn) GetName() string {
139 if x != nil {
140 return x.Name
141 }
142 return ""
143 }
144
145 func (x *SqlResultColumn) GetType() string {
146 if x != nil {
147 return x.Type
148 }
149 return ""
150 }
151
152 // A single row from a sql result.
153 type SqlResultRow struct {
154 state protoimpl.MessageState
155 sizeCache protoimpl.SizeCache
156 unknownFields protoimpl.UnknownFields
157
158 // List of values in a row of sql result.
159 Values []*SqlResultValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
160 }
161
162 func (x *SqlResultRow) Reset() {
163 *x = SqlResultRow{}
164 mi := &file_google_cloud_alloydb_v1_data_model_proto_msgTypes[2]
165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
166 ms.StoreMessageInfo(mi)
167 }
168
169 func (x *SqlResultRow) String() string {
170 return protoimpl.X.MessageStringOf(x)
171 }
172
173 func (*SqlResultRow) ProtoMessage() {}
174
175 func (x *SqlResultRow) ProtoReflect() protoreflect.Message {
176 mi := &file_google_cloud_alloydb_v1_data_model_proto_msgTypes[2]
177 if x != nil {
178 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
179 if ms.LoadMessageInfo() == nil {
180 ms.StoreMessageInfo(mi)
181 }
182 return ms
183 }
184 return mi.MessageOf(x)
185 }
186
187 // Deprecated: Use SqlResultRow.ProtoReflect.Descriptor instead.
188 func (*SqlResultRow) Descriptor() ([]byte, []int) {
189 return file_google_cloud_alloydb_v1_data_model_proto_rawDescGZIP(), []int{2}
190 }
191
192 func (x *SqlResultRow) GetValues() []*SqlResultValue {
193 if x != nil {
194 return x.Values
195 }
196 return nil
197 }
198
199 // A single value in a row from a sql result.
200 type SqlResultValue struct {
201 state protoimpl.MessageState
202 sizeCache protoimpl.SizeCache
203 unknownFields protoimpl.UnknownFields
204
205 // The cell value represented in string format.
206 // Timestamps are converted to string using RFC3339Nano format.
207 Value *string `protobuf:"bytes,1,opt,name=value,proto3,oneof" json:"value,omitempty"`
208 // Set to true if cell value is null.
209 NullValue *bool `protobuf:"varint,2,opt,name=null_value,json=nullValue,proto3,oneof" json:"null_value,omitempty"`
210 }
211
212 func (x *SqlResultValue) Reset() {
213 *x = SqlResultValue{}
214 mi := &file_google_cloud_alloydb_v1_data_model_proto_msgTypes[3]
215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
216 ms.StoreMessageInfo(mi)
217 }
218
219 func (x *SqlResultValue) String() string {
220 return protoimpl.X.MessageStringOf(x)
221 }
222
223 func (*SqlResultValue) ProtoMessage() {}
224
225 func (x *SqlResultValue) ProtoReflect() protoreflect.Message {
226 mi := &file_google_cloud_alloydb_v1_data_model_proto_msgTypes[3]
227 if x != nil {
228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
229 if ms.LoadMessageInfo() == nil {
230 ms.StoreMessageInfo(mi)
231 }
232 return ms
233 }
234 return mi.MessageOf(x)
235 }
236
237 // Deprecated: Use SqlResultValue.ProtoReflect.Descriptor instead.
238 func (*SqlResultValue) Descriptor() ([]byte, []int) {
239 return file_google_cloud_alloydb_v1_data_model_proto_rawDescGZIP(), []int{3}
240 }
241
242 func (x *SqlResultValue) GetValue() string {
243 if x != nil && x.Value != nil {
244 return *x.Value
245 }
246 return ""
247 }
248
249 func (x *SqlResultValue) GetNullValue() bool {
250 if x != nil && x.NullValue != nil {
251 return *x.NullValue
252 }
253 return false
254 }
255
256 var File_google_cloud_alloydb_v1_data_model_proto protoreflect.FileDescriptor
257
258 var file_google_cloud_alloydb_v1_data_model_proto_rawDesc = []byte{
259 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
260 0x6c, 0x6c, 0x6f, 0x79, 0x64, 0x62, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d,
261 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67,
262 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x79, 0x64, 0x62,
263 0x2e, 0x76, 0x31, 0x22, 0x8a, 0x01, 0x0a, 0x09, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c,
264 0x74, 0x12, 0x42, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
265 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
266 0x64, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x79, 0x64, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c,
267 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f,
268 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x39, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20,
269 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
270 0x75, 0x64, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x79, 0x64, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71,
271 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73,
272 0x22, 0x39, 0x0a, 0x0f, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6c,
273 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
274 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
275 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x0c, 0x53,
276 0x71, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x6f, 0x77, 0x12, 0x3f, 0x0a, 0x06, 0x76,
277 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f,
278 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x79,
279 0x64, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x56,
280 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x0e,
281 0x53, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x19,
282 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
283 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x6e, 0x75, 0x6c,
284 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52,
285 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a,
286 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x75, 0x6c, 0x6c,
287 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xb7, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
288 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x6c, 0x6c, 0x6f,
289 0x79, 0x64, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x6f, 0x64, 0x65,
290 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
291 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x6c,
292 0x6c, 0x6f, 0x79, 0x64, 0x62, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x6f,
293 0x79, 0x64, 0x62, 0x70, 0x62, 0x3b, 0x61, 0x6c, 0x6c, 0x6f, 0x79, 0x64, 0x62, 0x70, 0x62, 0xaa,
294 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41,
295 0x6c, 0x6c, 0x6f, 0x79, 0x44, 0x62, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67,
296 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x6c, 0x6c, 0x6f, 0x79, 0x44, 0x62,
297 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c,
298 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x6c, 0x6c, 0x6f, 0x79, 0x44, 0x42, 0x3a, 0x3a, 0x56, 0x31,
299 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
300 }
301
302 var (
303 file_google_cloud_alloydb_v1_data_model_proto_rawDescOnce sync.Once
304 file_google_cloud_alloydb_v1_data_model_proto_rawDescData = file_google_cloud_alloydb_v1_data_model_proto_rawDesc
305 )
306
307 func file_google_cloud_alloydb_v1_data_model_proto_rawDescGZIP() []byte {
308 file_google_cloud_alloydb_v1_data_model_proto_rawDescOnce.Do(func() {
309 file_google_cloud_alloydb_v1_data_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_alloydb_v1_data_model_proto_rawDescData)
310 })
311 return file_google_cloud_alloydb_v1_data_model_proto_rawDescData
312 }
313
314 var file_google_cloud_alloydb_v1_data_model_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
315 var file_google_cloud_alloydb_v1_data_model_proto_goTypes = []any{
316 (*SqlResult)(nil), // 0: google.cloud.alloydb.v1.SqlResult
317 (*SqlResultColumn)(nil), // 1: google.cloud.alloydb.v1.SqlResultColumn
318 (*SqlResultRow)(nil), // 2: google.cloud.alloydb.v1.SqlResultRow
319 (*SqlResultValue)(nil), // 3: google.cloud.alloydb.v1.SqlResultValue
320 }
321 var file_google_cloud_alloydb_v1_data_model_proto_depIdxs = []int32{
322 1, // 0: google.cloud.alloydb.v1.SqlResult.columns:type_name -> google.cloud.alloydb.v1.SqlResultColumn
323 2, // 1: google.cloud.alloydb.v1.SqlResult.rows:type_name -> google.cloud.alloydb.v1.SqlResultRow
324 3, // 2: google.cloud.alloydb.v1.SqlResultRow.values:type_name -> google.cloud.alloydb.v1.SqlResultValue
325 3, // [3:3] is the sub-list for method output_type
326 3, // [3:3] is the sub-list for method input_type
327 3, // [3:3] is the sub-list for extension type_name
328 3, // [3:3] is the sub-list for extension extendee
329 0, // [0:3] is the sub-list for field type_name
330 }
331
332 func init() { file_google_cloud_alloydb_v1_data_model_proto_init() }
333 func file_google_cloud_alloydb_v1_data_model_proto_init() {
334 if File_google_cloud_alloydb_v1_data_model_proto != nil {
335 return
336 }
337 file_google_cloud_alloydb_v1_data_model_proto_msgTypes[3].OneofWrappers = []any{}
338 type x struct{}
339 out := protoimpl.TypeBuilder{
340 File: protoimpl.DescBuilder{
341 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
342 RawDescriptor: file_google_cloud_alloydb_v1_data_model_proto_rawDesc,
343 NumEnums: 0,
344 NumMessages: 4,
345 NumExtensions: 0,
346 NumServices: 0,
347 },
348 GoTypes: file_google_cloud_alloydb_v1_data_model_proto_goTypes,
349 DependencyIndexes: file_google_cloud_alloydb_v1_data_model_proto_depIdxs,
350 MessageInfos: file_google_cloud_alloydb_v1_data_model_proto_msgTypes,
351 }.Build()
352 File_google_cloud_alloydb_v1_data_model_proto = out.File
353 file_google_cloud_alloydb_v1_data_model_proto_rawDesc = nil
354 file_google_cloud_alloydb_v1_data_model_proto_goTypes = nil
355 file_google_cloud_alloydb_v1_data_model_proto_depIdxs = nil
356 }