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 )
35
36 const (
37
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43
44 type SqlTiersListRequest struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49
50 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
51 }
52
53 func (x *SqlTiersListRequest) Reset() {
54 *x = SqlTiersListRequest{}
55 if protoimpl.UnsafeEnabled {
56 mi := &file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60 }
61
62 func (x *SqlTiersListRequest) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*SqlTiersListRequest) ProtoMessage() {}
67
68 func (x *SqlTiersListRequest) ProtoReflect() protoreflect.Message {
69 mi := &file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[0]
70 if protoimpl.UnsafeEnabled && x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80
81 func (*SqlTiersListRequest) Descriptor() ([]byte, []int) {
82 return file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *SqlTiersListRequest) GetProject() string {
86 if x != nil {
87 return x.Project
88 }
89 return ""
90 }
91
92
93 type TiersListResponse struct {
94 state protoimpl.MessageState
95 sizeCache protoimpl.SizeCache
96 unknownFields protoimpl.UnknownFields
97
98
99 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
100
101 Items []*Tier `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
102 }
103
104 func (x *TiersListResponse) Reset() {
105 *x = TiersListResponse{}
106 if protoimpl.UnsafeEnabled {
107 mi := &file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[1]
108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109 ms.StoreMessageInfo(mi)
110 }
111 }
112
113 func (x *TiersListResponse) String() string {
114 return protoimpl.X.MessageStringOf(x)
115 }
116
117 func (*TiersListResponse) ProtoMessage() {}
118
119 func (x *TiersListResponse) ProtoReflect() protoreflect.Message {
120 mi := &file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[1]
121 if protoimpl.UnsafeEnabled && x != nil {
122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123 if ms.LoadMessageInfo() == nil {
124 ms.StoreMessageInfo(mi)
125 }
126 return ms
127 }
128 return mi.MessageOf(x)
129 }
130
131
132 func (*TiersListResponse) Descriptor() ([]byte, []int) {
133 return file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescGZIP(), []int{1}
134 }
135
136 func (x *TiersListResponse) GetKind() string {
137 if x != nil {
138 return x.Kind
139 }
140 return ""
141 }
142
143 func (x *TiersListResponse) GetItems() []*Tier {
144 if x != nil {
145 return x.Items
146 }
147 return nil
148 }
149
150
151 type Tier struct {
152 state protoimpl.MessageState
153 sizeCache protoimpl.SizeCache
154 unknownFields protoimpl.UnknownFields
155
156
157
158 Tier string `protobuf:"bytes,1,opt,name=tier,proto3" json:"tier,omitempty"`
159
160 RAM int64 `protobuf:"varint,2,opt,name=RAM,proto3" json:"RAM,omitempty"`
161
162 Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
163
164 Disk_Quota int64 `protobuf:"varint,4,opt,name=Disk_Quota,json=DiskQuota,proto3" json:"Disk_Quota,omitempty"`
165
166 Region []string `protobuf:"bytes,5,rep,name=region,proto3" json:"region,omitempty"`
167 }
168
169 func (x *Tier) Reset() {
170 *x = Tier{}
171 if protoimpl.UnsafeEnabled {
172 mi := &file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[2]
173 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
174 ms.StoreMessageInfo(mi)
175 }
176 }
177
178 func (x *Tier) String() string {
179 return protoimpl.X.MessageStringOf(x)
180 }
181
182 func (*Tier) ProtoMessage() {}
183
184 func (x *Tier) ProtoReflect() protoreflect.Message {
185 mi := &file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[2]
186 if protoimpl.UnsafeEnabled && x != nil {
187 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188 if ms.LoadMessageInfo() == nil {
189 ms.StoreMessageInfo(mi)
190 }
191 return ms
192 }
193 return mi.MessageOf(x)
194 }
195
196
197 func (*Tier) Descriptor() ([]byte, []int) {
198 return file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescGZIP(), []int{2}
199 }
200
201 func (x *Tier) GetTier() string {
202 if x != nil {
203 return x.Tier
204 }
205 return ""
206 }
207
208 func (x *Tier) GetRAM() int64 {
209 if x != nil {
210 return x.RAM
211 }
212 return 0
213 }
214
215 func (x *Tier) GetKind() string {
216 if x != nil {
217 return x.Kind
218 }
219 return ""
220 }
221
222 func (x *Tier) GetDisk_Quota() int64 {
223 if x != nil {
224 return x.Disk_Quota
225 }
226 return 0
227 }
228
229 func (x *Tier) GetRegion() []string {
230 if x != nil {
231 return x.Region
232 }
233 return nil
234 }
235
236 var File_google_cloud_sql_v1_cloud_sql_tiers_proto protoreflect.FileDescriptor
237
238 var file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDesc = []byte{
239 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
240 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c, 0x5f,
241 0x74, 0x69, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f,
242 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31,
243 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
244 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
245 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
246 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2f, 0x0a, 0x13, 0x53, 0x71, 0x6c, 0x54, 0x69,
247 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18,
248 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
249 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x58, 0x0a, 0x11, 0x54, 0x69, 0x65, 0x72,
250 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
251 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e,
252 0x64, 0x12, 0x2f, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
253 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
254 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x52, 0x05, 0x69, 0x74, 0x65,
255 0x6d, 0x73, 0x22, 0x77, 0x0a, 0x04, 0x54, 0x69, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69,
256 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69, 0x65, 0x72, 0x12, 0x10,
257 0x0a, 0x03, 0x52, 0x41, 0x4d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x52, 0x41, 0x4d,
258 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
259 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x6b, 0x5f, 0x51, 0x75, 0x6f,
260 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x44, 0x69, 0x73, 0x6b, 0x51, 0x75,
261 0x6f, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20,
262 0x03, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x32, 0x8f, 0x02, 0x0a, 0x0f,
263 0x53, 0x71, 0x6c, 0x54, 0x69, 0x65, 0x72, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
264 0x7e, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
265 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71,
266 0x6c, 0x54, 0x69, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
267 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
268 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x73, 0x4c, 0x69, 0x73,
269 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02,
270 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
271 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x74, 0x69, 0x65, 0x72, 0x73, 0x1a,
272 0x7c, 0xca, 0x41, 0x17, 0x73, 0x71, 0x6c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x67, 0x6f, 0x6f,
273 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x5f, 0x68, 0x74,
274 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
275 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c,
276 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74,
277 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
278 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x71, 0x6c,
279 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x67, 0x0a,
280 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
281 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x53,
282 0x71, 0x6c, 0x54, 0x69, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36,
283 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
284 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
285 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x71, 0x6c, 0x2f,
286 0x76, 0x31, 0x3b, 0x73, 0x71, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
287 }
288
289 var (
290 file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescOnce sync.Once
291 file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescData = file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDesc
292 )
293
294 func file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescGZIP() []byte {
295 file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescOnce.Do(func() {
296 file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescData)
297 })
298 return file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDescData
299 }
300
301 var file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
302 var file_google_cloud_sql_v1_cloud_sql_tiers_proto_goTypes = []interface{}{
303 (*SqlTiersListRequest)(nil),
304 (*TiersListResponse)(nil),
305 (*Tier)(nil),
306 }
307 var file_google_cloud_sql_v1_cloud_sql_tiers_proto_depIdxs = []int32{
308 2,
309 0,
310 1,
311 2,
312 1,
313 1,
314 1,
315 0,
316 }
317
318 func init() { file_google_cloud_sql_v1_cloud_sql_tiers_proto_init() }
319 func file_google_cloud_sql_v1_cloud_sql_tiers_proto_init() {
320 if File_google_cloud_sql_v1_cloud_sql_tiers_proto != nil {
321 return
322 }
323 if !protoimpl.UnsafeEnabled {
324 file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
325 switch v := v.(*SqlTiersListRequest); i {
326 case 0:
327 return &v.state
328 case 1:
329 return &v.sizeCache
330 case 2:
331 return &v.unknownFields
332 default:
333 return nil
334 }
335 }
336 file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
337 switch v := v.(*TiersListResponse); i {
338 case 0:
339 return &v.state
340 case 1:
341 return &v.sizeCache
342 case 2:
343 return &v.unknownFields
344 default:
345 return nil
346 }
347 }
348 file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
349 switch v := v.(*Tier); i {
350 case 0:
351 return &v.state
352 case 1:
353 return &v.sizeCache
354 case 2:
355 return &v.unknownFields
356 default:
357 return nil
358 }
359 }
360 }
361 type x struct{}
362 out := protoimpl.TypeBuilder{
363 File: protoimpl.DescBuilder{
364 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
365 RawDescriptor: file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDesc,
366 NumEnums: 0,
367 NumMessages: 3,
368 NumExtensions: 0,
369 NumServices: 1,
370 },
371 GoTypes: file_google_cloud_sql_v1_cloud_sql_tiers_proto_goTypes,
372 DependencyIndexes: file_google_cloud_sql_v1_cloud_sql_tiers_proto_depIdxs,
373 MessageInfos: file_google_cloud_sql_v1_cloud_sql_tiers_proto_msgTypes,
374 }.Build()
375 File_google_cloud_sql_v1_cloud_sql_tiers_proto = out.File
376 file_google_cloud_sql_v1_cloud_sql_tiers_proto_rawDesc = nil
377 file_google_cloud_sql_v1_cloud_sql_tiers_proto_goTypes = nil
378 file_google_cloud_sql_v1_cloud_sql_tiers_proto_depIdxs = nil
379 }
380
381
382 var _ context.Context
383 var _ grpc.ClientConnInterface
384
385
386
387 const _ = grpc.SupportPackageIsVersion6
388
389
390
391
392 type SqlTiersServiceClient interface {
393
394
395
396 List(ctx context.Context, in *SqlTiersListRequest, opts ...grpc.CallOption) (*TiersListResponse, error)
397 }
398
399 type sqlTiersServiceClient struct {
400 cc grpc.ClientConnInterface
401 }
402
403 func NewSqlTiersServiceClient(cc grpc.ClientConnInterface) SqlTiersServiceClient {
404 return &sqlTiersServiceClient{cc}
405 }
406
407 func (c *sqlTiersServiceClient) List(ctx context.Context, in *SqlTiersListRequest, opts ...grpc.CallOption) (*TiersListResponse, error) {
408 out := new(TiersListResponse)
409 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlTiersService/List", in, out, opts...)
410 if err != nil {
411 return nil, err
412 }
413 return out, nil
414 }
415
416
417 type SqlTiersServiceServer interface {
418
419
420
421 List(context.Context, *SqlTiersListRequest) (*TiersListResponse, error)
422 }
423
424
425 type UnimplementedSqlTiersServiceServer struct {
426 }
427
428 func (*UnimplementedSqlTiersServiceServer) List(context.Context, *SqlTiersListRequest) (*TiersListResponse, error) {
429 return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
430 }
431
432 func RegisterSqlTiersServiceServer(s *grpc.Server, srv SqlTiersServiceServer) {
433 s.RegisterService(&_SqlTiersService_serviceDesc, srv)
434 }
435
436 func _SqlTiersService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
437 in := new(SqlTiersListRequest)
438 if err := dec(in); err != nil {
439 return nil, err
440 }
441 if interceptor == nil {
442 return srv.(SqlTiersServiceServer).List(ctx, in)
443 }
444 info := &grpc.UnaryServerInfo{
445 Server: srv,
446 FullMethod: "/google.cloud.sql.v1.SqlTiersService/List",
447 }
448 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
449 return srv.(SqlTiersServiceServer).List(ctx, req.(*SqlTiersListRequest))
450 }
451 return interceptor(ctx, in, info, handler)
452 }
453
454 var _SqlTiersService_serviceDesc = grpc.ServiceDesc{
455 ServiceName: "google.cloud.sql.v1.SqlTiersService",
456 HandlerType: (*SqlTiersServiceServer)(nil),
457 Methods: []grpc.MethodDesc{
458 {
459 MethodName: "List",
460 Handler: _SqlTiersService_List_Handler,
461 },
462 },
463 Streams: []grpc.StreamDesc{},
464 Metadata: "google/cloud/sql/v1/cloud_sql_tiers.proto",
465 }
466
View as plain text