Debian Codegraph @

googleapis/cloud/sql/v1/cloud_sql_operations.pb.go

raw
1 // Copyright 2021 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.26.0
18 // protoc v3.12.2
19 // source: google/cloud/sql/v1/cloud_sql_operations.proto
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 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Operations get request.
44 type SqlOperationsGetRequest struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Instance operation ID.
50 Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
51 // Project ID of the project that contains the instance.
52 Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
53 }
54
55 func (x *SqlOperationsGetRequest) Reset() {
56 *x = SqlOperationsGetRequest{}
57 if protoimpl.UnsafeEnabled {
58 mi := &file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[0]
59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60 ms.StoreMessageInfo(mi)
61 }
62 }
63
64 func (x *SqlOperationsGetRequest) String() string {
65 return protoimpl.X.MessageStringOf(x)
66 }
67
68 func (*SqlOperationsGetRequest) ProtoMessage() {}
69
70 func (x *SqlOperationsGetRequest) ProtoReflect() protoreflect.Message {
71 mi := &file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[0]
72 if protoimpl.UnsafeEnabled && x != nil {
73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74 if ms.LoadMessageInfo() == nil {
75 ms.StoreMessageInfo(mi)
76 }
77 return ms
78 }
79 return mi.MessageOf(x)
80 }
81
82 // Deprecated: Use SqlOperationsGetRequest.ProtoReflect.Descriptor instead.
83 func (*SqlOperationsGetRequest) Descriptor() ([]byte, []int) {
84 return file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescGZIP(), []int{0}
85 }
86
87 func (x *SqlOperationsGetRequest) GetOperation() string {
88 if x != nil {
89 return x.Operation
90 }
91 return ""
92 }
93
94 func (x *SqlOperationsGetRequest) GetProject() string {
95 if x != nil {
96 return x.Project
97 }
98 return ""
99 }
100
101 // Operations list request.
102 type SqlOperationsListRequest struct {
103 state protoimpl.MessageState
104 sizeCache protoimpl.SizeCache
105 unknownFields protoimpl.UnknownFields
106
107 // Cloud SQL instance ID. This does not include the project ID.
108 Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
109 // Maximum number of operations per response.
110 MaxResults uint32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"`
111 // A previously-returned page token representing part of the larger set of
112 // results to view.
113 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
114 // Project ID of the project that contains the instance.
115 Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
116 }
117
118 func (x *SqlOperationsListRequest) Reset() {
119 *x = SqlOperationsListRequest{}
120 if protoimpl.UnsafeEnabled {
121 mi := &file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[1]
122 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
123 ms.StoreMessageInfo(mi)
124 }
125 }
126
127 func (x *SqlOperationsListRequest) String() string {
128 return protoimpl.X.MessageStringOf(x)
129 }
130
131 func (*SqlOperationsListRequest) ProtoMessage() {}
132
133 func (x *SqlOperationsListRequest) ProtoReflect() protoreflect.Message {
134 mi := &file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[1]
135 if protoimpl.UnsafeEnabled && x != nil {
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 if ms.LoadMessageInfo() == nil {
138 ms.StoreMessageInfo(mi)
139 }
140 return ms
141 }
142 return mi.MessageOf(x)
143 }
144
145 // Deprecated: Use SqlOperationsListRequest.ProtoReflect.Descriptor instead.
146 func (*SqlOperationsListRequest) Descriptor() ([]byte, []int) {
147 return file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescGZIP(), []int{1}
148 }
149
150 func (x *SqlOperationsListRequest) GetInstance() string {
151 if x != nil {
152 return x.Instance
153 }
154 return ""
155 }
156
157 func (x *SqlOperationsListRequest) GetMaxResults() uint32 {
158 if x != nil {
159 return x.MaxResults
160 }
161 return 0
162 }
163
164 func (x *SqlOperationsListRequest) GetPageToken() string {
165 if x != nil {
166 return x.PageToken
167 }
168 return ""
169 }
170
171 func (x *SqlOperationsListRequest) GetProject() string {
172 if x != nil {
173 return x.Project
174 }
175 return ""
176 }
177
178 // Operations list response.
179 type OperationsListResponse struct {
180 state protoimpl.MessageState
181 sizeCache protoimpl.SizeCache
182 unknownFields protoimpl.UnknownFields
183
184 // This is always **sql#operationsList**.
185 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
186 // List of operation resources.
187 Items []*Operation `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
188 // The continuation token, used to page through large result sets. Provide
189 // this value in a subsequent request to return the next page of results.
190 NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
191 }
192
193 func (x *OperationsListResponse) Reset() {
194 *x = OperationsListResponse{}
195 if protoimpl.UnsafeEnabled {
196 mi := &file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[2]
197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
198 ms.StoreMessageInfo(mi)
199 }
200 }
201
202 func (x *OperationsListResponse) String() string {
203 return protoimpl.X.MessageStringOf(x)
204 }
205
206 func (*OperationsListResponse) ProtoMessage() {}
207
208 func (x *OperationsListResponse) ProtoReflect() protoreflect.Message {
209 mi := &file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[2]
210 if protoimpl.UnsafeEnabled && x != nil {
211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
212 if ms.LoadMessageInfo() == nil {
213 ms.StoreMessageInfo(mi)
214 }
215 return ms
216 }
217 return mi.MessageOf(x)
218 }
219
220 // Deprecated: Use OperationsListResponse.ProtoReflect.Descriptor instead.
221 func (*OperationsListResponse) Descriptor() ([]byte, []int) {
222 return file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescGZIP(), []int{2}
223 }
224
225 func (x *OperationsListResponse) GetKind() string {
226 if x != nil {
227 return x.Kind
228 }
229 return ""
230 }
231
232 func (x *OperationsListResponse) GetItems() []*Operation {
233 if x != nil {
234 return x.Items
235 }
236 return nil
237 }
238
239 func (x *OperationsListResponse) GetNextPageToken() string {
240 if x != nil {
241 return x.NextPageToken
242 }
243 return ""
244 }
245
246 var File_google_cloud_sql_v1_cloud_sql_operations_proto protoreflect.FileDescriptor
247
248 var file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDesc = []byte{
249 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
250 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x71, 0x6c, 0x5f,
251 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
252 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
253 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
254 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
255 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
256 0x64, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73,
257 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
258 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
259 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x17, 0x53,
260 0x71, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x47, 0x65, 0x74, 0x52,
261 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
262 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61,
263 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
264 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x90,
265 0x01, 0x0a, 0x18, 0x53, 0x71, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
266 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69,
267 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69,
268 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x72,
269 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x61,
270 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,
271 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61,
272 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,
273 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
274 0x74, 0x22, 0x8a, 0x01, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
275 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
276 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64,
277 0x12, 0x34, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
278 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
279 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
280 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70,
281 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
282 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xb1,
283 0x03, 0x0a, 0x14, 0x53, 0x71, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
284 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12,
285 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
286 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
287 0x6f, 0x6e, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
288 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c,
289 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x35, 0x82,
290 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65,
291 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6f, 0x70,
292 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
293 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x2e,
294 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c,
295 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x71, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
296 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67,
297 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e,
298 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4c, 0x69, 0x73,
299 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02,
300 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
301 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
302 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x7c, 0xca, 0x41, 0x17, 0x73, 0x71, 0x6c, 0x61, 0x64, 0x6d, 0x69,
303 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
304 0xd2, 0x41, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67,
305 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75,
306 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
307 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
308 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
309 0x68, 0x2f, 0x73, 0x71, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x64, 0x6d,
310 0x69, 0x6e, 0x42, 0x6c, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
311 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x71, 0x6c, 0x2e, 0x76, 0x31, 0x42, 0x17, 0x43,
312 0x6c, 0x6f, 0x75, 0x64, 0x53, 0x71, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
313 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
314 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
315 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
316 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x71, 0x6c,
317 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
318 }
319
320 var (
321 file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescOnce sync.Once
322 file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescData = file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDesc
323 )
324
325 func file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescGZIP() []byte {
326 file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescOnce.Do(func() {
327 file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescData)
328 })
329 return file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDescData
330 }
331
332 var file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
333 var file_google_cloud_sql_v1_cloud_sql_operations_proto_goTypes = []interface{}{
334 (*SqlOperationsGetRequest)(nil), // 0: google.cloud.sql.v1.SqlOperationsGetRequest
335 (*SqlOperationsListRequest)(nil), // 1: google.cloud.sql.v1.SqlOperationsListRequest
336 (*OperationsListResponse)(nil), // 2: google.cloud.sql.v1.OperationsListResponse
337 (*Operation)(nil), // 3: google.cloud.sql.v1.Operation
338 }
339 var file_google_cloud_sql_v1_cloud_sql_operations_proto_depIdxs = []int32{
340 3, // 0: google.cloud.sql.v1.OperationsListResponse.items:type_name -> google.cloud.sql.v1.Operation
341 0, // 1: google.cloud.sql.v1.SqlOperationsService.Get:input_type -> google.cloud.sql.v1.SqlOperationsGetRequest
342 1, // 2: google.cloud.sql.v1.SqlOperationsService.List:input_type -> google.cloud.sql.v1.SqlOperationsListRequest
343 3, // 3: google.cloud.sql.v1.SqlOperationsService.Get:output_type -> google.cloud.sql.v1.Operation
344 2, // 4: google.cloud.sql.v1.SqlOperationsService.List:output_type -> google.cloud.sql.v1.OperationsListResponse
345 3, // [3:5] is the sub-list for method output_type
346 1, // [1:3] is the sub-list for method input_type
347 1, // [1:1] is the sub-list for extension type_name
348 1, // [1:1] is the sub-list for extension extendee
349 0, // [0:1] is the sub-list for field type_name
350 }
351
352 func init() { file_google_cloud_sql_v1_cloud_sql_operations_proto_init() }
353 func file_google_cloud_sql_v1_cloud_sql_operations_proto_init() {
354 if File_google_cloud_sql_v1_cloud_sql_operations_proto != nil {
355 return
356 }
357 file_google_cloud_sql_v1_cloud_sql_resources_proto_init()
358 if !protoimpl.UnsafeEnabled {
359 file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
360 switch v := v.(*SqlOperationsGetRequest); i {
361 case 0:
362 return &v.state
363 case 1:
364 return &v.sizeCache
365 case 2:
366 return &v.unknownFields
367 default:
368 return nil
369 }
370 }
371 file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
372 switch v := v.(*SqlOperationsListRequest); i {
373 case 0:
374 return &v.state
375 case 1:
376 return &v.sizeCache
377 case 2:
378 return &v.unknownFields
379 default:
380 return nil
381 }
382 }
383 file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
384 switch v := v.(*OperationsListResponse); i {
385 case 0:
386 return &v.state
387 case 1:
388 return &v.sizeCache
389 case 2:
390 return &v.unknownFields
391 default:
392 return nil
393 }
394 }
395 }
396 type x struct{}
397 out := protoimpl.TypeBuilder{
398 File: protoimpl.DescBuilder{
399 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
400 RawDescriptor: file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDesc,
401 NumEnums: 0,
402 NumMessages: 3,
403 NumExtensions: 0,
404 NumServices: 1,
405 },
406 GoTypes: file_google_cloud_sql_v1_cloud_sql_operations_proto_goTypes,
407 DependencyIndexes: file_google_cloud_sql_v1_cloud_sql_operations_proto_depIdxs,
408 MessageInfos: file_google_cloud_sql_v1_cloud_sql_operations_proto_msgTypes,
409 }.Build()
410 File_google_cloud_sql_v1_cloud_sql_operations_proto = out.File
411 file_google_cloud_sql_v1_cloud_sql_operations_proto_rawDesc = nil
412 file_google_cloud_sql_v1_cloud_sql_operations_proto_goTypes = nil
413 file_google_cloud_sql_v1_cloud_sql_operations_proto_depIdxs = nil
414 }
415
416 // Reference imports to suppress errors if they are not otherwise used.
417 var _ context.Context
418 var _ grpc.ClientConnInterface
419
420 // This is a compile-time assertion to ensure that this generated file
421 // is compatible with the grpc package it is being compiled against.
422 const _ = grpc.SupportPackageIsVersion6
423
424 // SqlOperationsServiceClient is the client API for SqlOperationsService service.
425 //
426 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
427 type SqlOperationsServiceClient interface {
428 // Retrieves an instance operation that has been performed on an instance.
429 Get(ctx context.Context, in *SqlOperationsGetRequest, opts ...grpc.CallOption) (*Operation, error)
430 // Lists all instance operations that have been performed on the given Cloud
431 // SQL instance in the reverse chronological order of the start time.
432 List(ctx context.Context, in *SqlOperationsListRequest, opts ...grpc.CallOption) (*OperationsListResponse, error)
433 }
434
435 type sqlOperationsServiceClient struct {
436 cc grpc.ClientConnInterface
437 }
438
439 func NewSqlOperationsServiceClient(cc grpc.ClientConnInterface) SqlOperationsServiceClient {
440 return &sqlOperationsServiceClient{cc}
441 }
442
443 func (c *sqlOperationsServiceClient) Get(ctx context.Context, in *SqlOperationsGetRequest, opts ...grpc.CallOption) (*Operation, error) {
444 out := new(Operation)
445 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlOperationsService/Get", in, out, opts...)
446 if err != nil {
447 return nil, err
448 }
449 return out, nil
450 }
451
452 func (c *sqlOperationsServiceClient) List(ctx context.Context, in *SqlOperationsListRequest, opts ...grpc.CallOption) (*OperationsListResponse, error) {
453 out := new(OperationsListResponse)
454 err := c.cc.Invoke(ctx, "/google.cloud.sql.v1.SqlOperationsService/List", in, out, opts...)
455 if err != nil {
456 return nil, err
457 }
458 return out, nil
459 }
460
461 // SqlOperationsServiceServer is the server API for SqlOperationsService service.
462 type SqlOperationsServiceServer interface {
463 // Retrieves an instance operation that has been performed on an instance.
464 Get(context.Context, *SqlOperationsGetRequest) (*Operation, error)
465 // Lists all instance operations that have been performed on the given Cloud
466 // SQL instance in the reverse chronological order of the start time.
467 List(context.Context, *SqlOperationsListRequest) (*OperationsListResponse, error)
468 }
469
470 // UnimplementedSqlOperationsServiceServer can be embedded to have forward compatible implementations.
471 type UnimplementedSqlOperationsServiceServer struct {
472 }
473
474 func (*UnimplementedSqlOperationsServiceServer) Get(context.Context, *SqlOperationsGetRequest) (*Operation, error) {
475 return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
476 }
477 func (*UnimplementedSqlOperationsServiceServer) List(context.Context, *SqlOperationsListRequest) (*OperationsListResponse, error) {
478 return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
479 }
480
481 func RegisterSqlOperationsServiceServer(s *grpc.Server, srv SqlOperationsServiceServer) {
482 s.RegisterService(&_SqlOperationsService_serviceDesc, srv)
483 }
484
485 func _SqlOperationsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
486 in := new(SqlOperationsGetRequest)
487 if err := dec(in); err != nil {
488 return nil, err
489 }
490 if interceptor == nil {
491 return srv.(SqlOperationsServiceServer).Get(ctx, in)
492 }
493 info := &grpc.UnaryServerInfo{
494 Server: srv,
495 FullMethod: "/google.cloud.sql.v1.SqlOperationsService/Get",
496 }
497 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
498 return srv.(SqlOperationsServiceServer).Get(ctx, req.(*SqlOperationsGetRequest))
499 }
500 return interceptor(ctx, in, info, handler)
501 }
502
503 func _SqlOperationsService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
504 in := new(SqlOperationsListRequest)
505 if err := dec(in); err != nil {
506 return nil, err
507 }
508 if interceptor == nil {
509 return srv.(SqlOperationsServiceServer).List(ctx, in)
510 }
511 info := &grpc.UnaryServerInfo{
512 Server: srv,
513 FullMethod: "/google.cloud.sql.v1.SqlOperationsService/List",
514 }
515 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
516 return srv.(SqlOperationsServiceServer).List(ctx, req.(*SqlOperationsListRequest))
517 }
518 return interceptor(ctx, in, info, handler)
519 }
520
521 var _SqlOperationsService_serviceDesc = grpc.ServiceDesc{
522 ServiceName: "google.cloud.sql.v1.SqlOperationsService",
523 HandlerType: (*SqlOperationsServiceServer)(nil),
524 Methods: []grpc.MethodDesc{
525 {
526 MethodName: "Get",
527 Handler: _SqlOperationsService_Get_Handler,
528 },
529 {
530 MethodName: "List",
531 Handler: _SqlOperationsService_List_Handler,
532 },
533 },
534 Streams: []grpc.StreamDesc{},
535 Metadata: "google/cloud/sql/v1/cloud_sql_operations.proto",
536 }