1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package sql
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
35 )
36
37 const (
38
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 type SqlFlagType int32
45
46 const (
47
48 SqlFlagType_SQL_FLAG_TYPE_UNSPECIFIED SqlFlagType = 0
49
50 SqlFlagType_BOOLEAN SqlFlagType = 1
51
52 SqlFlagType_STRING SqlFlagType = 2
53
54 SqlFlagType_INTEGER SqlFlagType = 3
55
56 SqlFlagType_NONE SqlFlagType = 4
57
58
59 SqlFlagType_MYSQL_TIMEZONE_OFFSET SqlFlagType = 5
60
61 SqlFlagType_FLOAT SqlFlagType = 6
62
63 SqlFlagType_REPEATED_STRING SqlFlagType = 7
64 )
65
66
67 var (
68 SqlFlagType_name = map[int32]string{
69 0: "SQL_FLAG_TYPE_UNSPECIFIED",
70 1: "BOOLEAN",
71 2: "STRING",
72 3: "INTEGER",
73 4: "NONE",
74 5: "MYSQL_TIMEZONE_OFFSET",
75 6: "FLOAT",
76 7: "REPEATED_STRING",
77 }
78 SqlFlagType_value = map[string]int32{
79 "SQL_FLAG_TYPE_UNSPECIFIED": 0,
80 "BOOLEAN": 1,
81 "STRING": 2,
82 "INTEGER": 3,
83 "NONE": 4,
84 "MYSQL_TIMEZONE_OFFSET": 5,
85 "FLOAT": 6,
86 "REPEATED_STRING": 7,
87 }
88 )
89
90 func (x SqlFlagType) Enum() *SqlFlagType {
91 p := new(SqlFlagType)
92 *p = x
93 return p
94 }
95
96 func (x SqlFlagType) String() string {
97 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
98 }
99
100 func (SqlFlagType) Descriptor() protoreflect.EnumDescriptor {
101 return file_google_cloud_sql_v1_cloud_sql_flags_proto_enumTypes[0].Descriptor()
102 }
103
104 func (SqlFlagType) Type() protoreflect.EnumType {
105 return &file_google_cloud_sql_v1_cloud_sql_flags_proto_enumTypes[0]
106 }
107
108 func (x SqlFlagType) Number() protoreflect.EnumNumber {
109 return protoreflect.EnumNumber(x)
110 }
111
112
113 func (SqlFlagType) EnumDescriptor() ([]byte, []int) {
114 return file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescGZIP(), []int{0}
115 }
116
117
118 type SqlFlagsListRequest struct {
119 state protoimpl.MessageState
120 sizeCache protoimpl.SizeCache
121 unknownFields protoimpl.UnknownFields
122
123
124
125 DatabaseVersion string `protobuf:"bytes,1,opt,name=database_version,json=databaseVersion,proto3" json:"database_version,omitempty"`
126 }
127
128 func (x *SqlFlagsListRequest) Reset() {
129 *x = SqlFlagsListRequest{}
130 if protoimpl.UnsafeEnabled {
131 mi := &file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[0]
132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133 ms.StoreMessageInfo(mi)
134 }
135 }
136
137 func (x *SqlFlagsListRequest) String() string {
138 return protoimpl.X.MessageStringOf(x)
139 }
140
141 func (*SqlFlagsListRequest) ProtoMessage() {}
142
143 func (x *SqlFlagsListRequest) ProtoReflect() protoreflect.Message {
144 mi := &file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[0]
145 if protoimpl.UnsafeEnabled && x != nil {
146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
147 if ms.LoadMessageInfo() == nil {
148 ms.StoreMessageInfo(mi)
149 }
150 return ms
151 }
152 return mi.MessageOf(x)
153 }
154
155
156 func (*SqlFlagsListRequest) Descriptor() ([]byte, []int) {
157 return file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescGZIP(), []int{0}
158 }
159
160 func (x *SqlFlagsListRequest) GetDatabaseVersion() string {
161 if x != nil {
162 return x.DatabaseVersion
163 }
164 return ""
165 }
166
167
168 type FlagsListResponse struct {
169 state protoimpl.MessageState
170 sizeCache protoimpl.SizeCache
171 unknownFields protoimpl.UnknownFields
172
173
174 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
175
176 Items []*Flag `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
177 }
178
179 func (x *FlagsListResponse) Reset() {
180 *x = FlagsListResponse{}
181 if protoimpl.UnsafeEnabled {
182 mi := &file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[1]
183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
184 ms.StoreMessageInfo(mi)
185 }
186 }
187
188 func (x *FlagsListResponse) String() string {
189 return protoimpl.X.MessageStringOf(x)
190 }
191
192 func (*FlagsListResponse) ProtoMessage() {}
193
194 func (x *FlagsListResponse) ProtoReflect() protoreflect.Message {
195 mi := &file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[1]
196 if protoimpl.UnsafeEnabled && x != nil {
197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
198 if ms.LoadMessageInfo() == nil {
199 ms.StoreMessageInfo(mi)
200 }
201 return ms
202 }
203 return mi.MessageOf(x)
204 }
205
206
207 func (*FlagsListResponse) Descriptor() ([]byte, []int) {
208 return file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescGZIP(), []int{1}
209 }
210
211 func (x *FlagsListResponse) GetKind() string {
212 if x != nil {
213 return x.Kind
214 }
215 return ""
216 }
217
218 func (x *FlagsListResponse) GetItems() []*Flag {
219 if x != nil {
220 return x.Items
221 }
222 return nil
223 }
224
225
226 type Flag struct {
227 state protoimpl.MessageState
228 sizeCache protoimpl.SizeCache
229 unknownFields protoimpl.UnknownFields
230
231
232
233 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
234
235
236
237 Type SqlFlagType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.sql.v1.SqlFlagType" json:"type,omitempty"`
238
239
240 AppliesTo []SqlDatabaseVersion `protobuf:"varint,3,rep,packed,name=applies_to,json=appliesTo,proto3,enum=google.cloud.sql.v1.SqlDatabaseVersion" json:"applies_to,omitempty"`
241
242 AllowedStringValues []string `protobuf:"bytes,4,rep,name=allowed_string_values,json=allowedStringValues,proto3" json:"allowed_string_values,omitempty"`
243
244 MinValue *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
245
246 MaxValue *wrapperspb.Int64Value `protobuf:"bytes,6,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
247
248
249 RequiresRestart *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=requires_restart,json=requiresRestart,proto3" json:"requires_restart,omitempty"`
250
251 Kind string `protobuf:"bytes,8,opt,name=kind,proto3" json:"kind,omitempty"`
252
253 InBeta *wrapperspb.BoolValue `protobuf:"bytes,9,opt,name=in_beta,json=inBeta,proto3" json:"in_beta,omitempty"`
254
255
256 AllowedIntValues []int64 `protobuf:"varint,10,rep,packed,name=allowed_int_values,json=allowedIntValues,proto3" json:"allowed_int_values,omitempty"`
257 }
258
259 func (x *Flag) Reset() {
260 *x = Flag{}
261 if protoimpl.UnsafeEnabled {
262 mi := &file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[2]
263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264 ms.StoreMessageInfo(mi)
265 }
266 }
267
268 func (x *Flag) String() string {
269 return protoimpl.X.MessageStringOf(x)
270 }
271
272 func (*Flag) ProtoMessage() {}
273
274 func (x *Flag) ProtoReflect() protoreflect.Message {
275 mi := &file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[2]
276 if protoimpl.UnsafeEnabled && x != nil {
277 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
278 if ms.LoadMessageInfo() == nil {
279 ms.StoreMessageInfo(mi)
280 }
281 return ms
282 }
283 return mi.MessageOf(x)
284 }
285
286
287 func (*Flag) Descriptor() ([]byte, []int) {
288 return file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescGZIP(), []int{2}
289 }
290
291 func (x *Flag) GetName() string {
292 if x != nil {
293 return x.Name
294 }
295 return ""
296 }
297
298 func (x *Flag) GetType() SqlFlagType {
299 if x != nil {
300 return x.Type
301 }
302 return SqlFlagType_SQL_FLAG_TYPE_UNSPECIFIED
303 }
304
305 func (x *Flag) GetAppliesTo() []SqlDatabaseVersion {
306 if x != nil {
307 return x.AppliesTo
308 }
309 return nil
310 }
311
312 func (x *Flag) GetAllowedStringValues() []string {
313 if x != nil {
314 return x.AllowedStringValues
315 }
316 return nil
317 }
318
319 func (x *Flag) GetMinValue() *wrapperspb.Int64Value {
320 if x != nil {
321 return x.MinValue
322 }
323 return nil
324 }
325
326 func (x *Flag) GetMaxValue() *wrapperspb.Int64Value {
327 if x != nil {
328 return x.MaxValue
329 }
330 return nil
331 }
332
333 func (x *Flag) GetRequiresRestart() *wrapperspb.BoolValue {
334 if x != nil {
335 return x.RequiresRestart
336 }
337 return nil
338 }
339
340 func (x *Flag) GetKind() string {
341 if x != nil {
342 return x.Kind
343 }
344 return ""
345 }
346
347 func (x *Flag) GetInBeta() *wrapperspb.BoolValue {
348 if x != nil {
349 return x.InBeta
350 }
351 return nil
352 }
353
354 func (x *Flag) GetAllowedIntValues() []int64 {
355 if x != nil {
356 return x.AllowedIntValues
357 }
358 return nil
359 }
360
361 var File_google_cloud_sql_v1_cloud_sql_flags_proto protoreflect.FileDescriptor
362
363 var file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDesc = []byte{
364 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
365 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c, 0x5f,
366 0x66, 0x6c, 0x61, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f,
367 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31,
368 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
369 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d,
370 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x71, 0x6c,
371 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65,
372 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67,
373 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77,
374 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67,
375 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
376 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x40, 0x0a, 0x13, 0x53, 0x71, 0x6c, 0x46, 0x6c, 0x61,
377 0x67, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a,
378 0x10, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
379 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
380 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x58, 0x0a, 0x11, 0x46, 0x6c, 0x61, 0x67,
381 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
382 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e,
383 0x64, 0x12, 0x2f, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
384 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
385 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x05, 0x69, 0x74, 0x65,
386 0x6d, 0x73, 0x22, 0xfe, 0x03, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,
387 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
388 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
389 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c,
390 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x46, 0x6c, 0x61, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52,
391 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73,
392 0x5f, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
393 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e,
394 0x53, 0x71, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69,
395 0x6f, 0x6e, 0x52, 0x09, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x54, 0x6f, 0x12, 0x32, 0x0a,
396 0x15, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f,
397 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x61, 0x6c,
398 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65,
399 0x73, 0x12, 0x38, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05,
400 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
401 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75,
402 0x65, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x6d,
403 0x61, 0x78, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
404 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
405 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6d, 0x61, 0x78,
406 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
407 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
408 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
409 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71,
410 0x75, 0x69, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04,
411 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64,
412 0x12, 0x33, 0x0a, 0x07, 0x69, 0x6e, 0x5f, 0x62, 0x65, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28,
413 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
414 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x69,
415 0x6e, 0x42, 0x65, 0x74, 0x61, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64,
416 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28,
417 0x03, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c,
418 0x75, 0x65, 0x73, 0x2a, 0x97, 0x01, 0x0a, 0x0b, 0x53, 0x71, 0x6c, 0x46, 0x6c, 0x61, 0x67, 0x54,
419 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x51, 0x4c, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f,
420 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
421 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x01, 0x12,
422 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x49,
423 0x4e, 0x54, 0x45, 0x47, 0x45, 0x52, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45,
424 0x10, 0x04, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x54, 0x49, 0x4d, 0x45,
425 0x5a, 0x4f, 0x4e, 0x45, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x10, 0x05, 0x12, 0x09, 0x0a,
426 0x05, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x45, 0x50, 0x45,
427 0x41, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x32, 0xfc, 0x01,
428 0x0a, 0x0f, 0x53, 0x71, 0x6c, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
429 0x65, 0x12, 0x6b, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
430 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e,
431 0x53, 0x71, 0x6c, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
432 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
433 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x4c,
434 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x82, 0xd3, 0xe4,
435 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x1a, 0x7c,
436 0xca, 0x41, 0x17, 0x73, 0x71, 0x6c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
437 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x5f, 0x68, 0x74, 0x74,
438 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
439 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f,
440 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70,
441 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
442 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x71, 0x6c, 0x73,
443 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x67, 0x0a, 0x17,
444 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
445 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x53, 0x71,
446 0x6c, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67,
447 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
448 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
449 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76,
450 0x31, 0x3b, 0x73, 0x71, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
451 }
452
453 var (
454 file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescOnce sync.Once
455 file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescData = file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDesc
456 )
457
458 func file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescGZIP() []byte {
459 file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescOnce.Do(func() {
460 file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescData)
461 })
462 return file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDescData
463 }
464
465 var file_google_cloud_sql_v1_cloud_sql_flags_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
466 var file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
467 var file_google_cloud_sql_v1_cloud_sql_flags_proto_goTypes = []interface{}{
468 (SqlFlagType)(0),
469 (*SqlFlagsListRequest)(nil),
470 (*FlagsListResponse)(nil),
471 (*Flag)(nil),
472 (SqlDatabaseVersion)(0),
473 (*wrapperspb.Int64Value)(nil),
474 (*wrapperspb.BoolValue)(nil),
475 }
476 var file_google_cloud_sql_v1_cloud_sql_flags_proto_depIdxs = []int32{
477 3,
478 0,
479 4,
480 5,
481 5,
482 6,
483 6,
484 1,
485 2,
486 8,
487 7,
488 7,
489 7,
490 0,
491 }
492
493 func init() { file_google_cloud_sql_v1_cloud_sql_flags_proto_init() }
494 func file_google_cloud_sql_v1_cloud_sql_flags_proto_init() {
495 if File_google_cloud_sql_v1_cloud_sql_flags_proto != nil {
496 return
497 }
498 file_google_cloud_sql_v1_cloud_sql_resources_proto_init()
499 if !protoimpl.UnsafeEnabled {
500 file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
501 switch v := v.(*SqlFlagsListRequest); i {
502 case 0:
503 return &v.state
504 case 1:
505 return &v.sizeCache
506 case 2:
507 return &v.unknownFields
508 default:
509 return nil
510 }
511 }
512 file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
513 switch v := v.(*FlagsListResponse); i {
514 case 0:
515 return &v.state
516 case 1:
517 return &v.sizeCache
518 case 2:
519 return &v.unknownFields
520 default:
521 return nil
522 }
523 }
524 file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
525 switch v := v.(*Flag); i {
526 case 0:
527 return &v.state
528 case 1:
529 return &v.sizeCache
530 case 2:
531 return &v.unknownFields
532 default:
533 return nil
534 }
535 }
536 }
537 type x struct{}
538 out := protoimpl.TypeBuilder{
539 File: protoimpl.DescBuilder{
540 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
541 RawDescriptor: file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDesc,
542 NumEnums: 1,
543 NumMessages: 3,
544 NumExtensions: 0,
545 NumServices: 1,
546 },
547 GoTypes: file_google_cloud_sql_v1_cloud_sql_flags_proto_goTypes,
548 DependencyIndexes: file_google_cloud_sql_v1_cloud_sql_flags_proto_depIdxs,
549 EnumInfos: file_google_cloud_sql_v1_cloud_sql_flags_proto_enumTypes,
550 MessageInfos: file_google_cloud_sql_v1_cloud_sql_flags_proto_msgTypes,
551 }.Build()
552 File_google_cloud_sql_v1_cloud_sql_flags_proto = out.File
553 file_google_cloud_sql_v1_cloud_sql_flags_proto_rawDesc = nil
554 file_google_cloud_sql_v1_cloud_sql_flags_proto_goTypes = nil
555 file_google_cloud_sql_v1_cloud_sql_flags_proto_depIdxs = nil
556 }
557
558
559 var _ context.Context
560 var _ grpc.ClientConnInterface
561
562
563
564 const _ = grpc.SupportPackageIsVersion6
565
566
567
568
569 type SqlFlagsServiceClient interface {
570
571 List(ctx context.Context, in *SqlFlagsListRequest, opts ...grpc.CallOption) (*FlagsListResponse, error)
572 }
573
574 type sqlFlagsServiceClient struct {
575 cc grpc.ClientConnInterface
576 }
577
578 func NewSqlFlagsServiceClient(cc grpc.ClientConnInterface) SqlFlagsServiceClient {
579 return &sqlFlagsServiceClient{cc}
580 }
581
582 func (c *sqlFlagsServiceClient) List(ctx context.Context, in *SqlFlagsListRequest, opts ...grpc.CallOption) (*FlagsListResponse, error) {
583 out := new(FlagsListResponse)
584 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlFlagsService/List", in, out, opts...)
585 if err != nil {
586 return nil, err
587 }
588 return out, nil
589 }
590
591
592 type SqlFlagsServiceServer interface {
593
594 List(context.Context, *SqlFlagsListRequest) (*FlagsListResponse, error)
595 }
596
597
598 type UnimplementedSqlFlagsServiceServer struct {
599 }
600
601 func (*UnimplementedSqlFlagsServiceServer) List(context.Context, *SqlFlagsListRequest) (*FlagsListResponse, error) {
602 return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
603 }
604
605 func RegisterSqlFlagsServiceServer(s *grpc.Server, srv SqlFlagsServiceServer) {
606 s.RegisterService(&_SqlFlagsService_serviceDesc, srv)
607 }
608
609 func _SqlFlagsService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
610 in := new(SqlFlagsListRequest)
611 if err := dec(in); err != nil {
612 return nil, err
613 }
614 if interceptor == nil {
615 return srv.(SqlFlagsServiceServer).List(ctx, in)
616 }
617 info := &grpc.UnaryServerInfo{
618 Server: srv,
619 FullMethod: "/google.cloud.sql.v1.SqlFlagsService/List",
620 }
621 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
622 return srv.(SqlFlagsServiceServer).List(ctx, req.(*SqlFlagsListRequest))
623 }
624 return interceptor(ctx, in, info, handler)
625 }
626
627 var _SqlFlagsService_serviceDesc = grpc.ServiceDesc{
628 ServiceName: "google.cloud.sql.v1.SqlFlagsService",
629 HandlerType: (*SqlFlagsServiceServer)(nil),
630 Methods: []grpc.MethodDesc{
631 {
632 MethodName: "List",
633 Handler: _SqlFlagsService_List_Handler,
634 },
635 },
636 Streams: []grpc.StreamDesc{},
637 Metadata: "google/cloud/sql/v1/cloud_sql_flags.proto",
638 }
639
View as plain text