vitess.io/vitess@v0.16.2/go/vt/vtctl/grpcvtctldclient/client_gen.go (about) 1 // Code generated by grpcvtctldclient-generator. DO NOT EDIT. 2 3 /* 4 Copyright 2021 The Vitess Authors. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 */ 18 19 package grpcvtctldclient 20 21 import ( 22 "context" 23 24 "google.golang.org/grpc" 25 "google.golang.org/grpc/codes" 26 "google.golang.org/grpc/status" 27 28 vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" 29 vtctlservicepb "vitess.io/vitess/go/vt/proto/vtctlservice" 30 ) 31 32 // AddCellInfo is part of the vtctlservicepb.VtctldClient interface. 33 func (client *gRPCVtctldClient) AddCellInfo(ctx context.Context, in *vtctldatapb.AddCellInfoRequest, opts ...grpc.CallOption) (*vtctldatapb.AddCellInfoResponse, error) { 34 if client.c == nil { 35 return nil, status.Error(codes.Unavailable, connClosedMsg) 36 } 37 38 return client.c.AddCellInfo(ctx, in, opts...) 39 } 40 41 // AddCellsAlias is part of the vtctlservicepb.VtctldClient interface. 42 func (client *gRPCVtctldClient) AddCellsAlias(ctx context.Context, in *vtctldatapb.AddCellsAliasRequest, opts ...grpc.CallOption) (*vtctldatapb.AddCellsAliasResponse, error) { 43 if client.c == nil { 44 return nil, status.Error(codes.Unavailable, connClosedMsg) 45 } 46 47 return client.c.AddCellsAlias(ctx, in, opts...) 48 } 49 50 // ApplyRoutingRules is part of the vtctlservicepb.VtctldClient interface. 51 func (client *gRPCVtctldClient) ApplyRoutingRules(ctx context.Context, in *vtctldatapb.ApplyRoutingRulesRequest, opts ...grpc.CallOption) (*vtctldatapb.ApplyRoutingRulesResponse, error) { 52 if client.c == nil { 53 return nil, status.Error(codes.Unavailable, connClosedMsg) 54 } 55 56 return client.c.ApplyRoutingRules(ctx, in, opts...) 57 } 58 59 // ApplySchema is part of the vtctlservicepb.VtctldClient interface. 60 func (client *gRPCVtctldClient) ApplySchema(ctx context.Context, in *vtctldatapb.ApplySchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.ApplySchemaResponse, error) { 61 if client.c == nil { 62 return nil, status.Error(codes.Unavailable, connClosedMsg) 63 } 64 65 return client.c.ApplySchema(ctx, in, opts...) 66 } 67 68 // ApplyShardRoutingRules is part of the vtctlservicepb.VtctldClient interface. 69 func (client *gRPCVtctldClient) ApplyShardRoutingRules(ctx context.Context, in *vtctldatapb.ApplyShardRoutingRulesRequest, opts ...grpc.CallOption) (*vtctldatapb.ApplyShardRoutingRulesResponse, error) { 70 if client.c == nil { 71 return nil, status.Error(codes.Unavailable, connClosedMsg) 72 } 73 74 return client.c.ApplyShardRoutingRules(ctx, in, opts...) 75 } 76 77 // ApplyVSchema is part of the vtctlservicepb.VtctldClient interface. 78 func (client *gRPCVtctldClient) ApplyVSchema(ctx context.Context, in *vtctldatapb.ApplyVSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.ApplyVSchemaResponse, error) { 79 if client.c == nil { 80 return nil, status.Error(codes.Unavailable, connClosedMsg) 81 } 82 83 return client.c.ApplyVSchema(ctx, in, opts...) 84 } 85 86 // Backup is part of the vtctlservicepb.VtctldClient interface. 87 func (client *gRPCVtctldClient) Backup(ctx context.Context, in *vtctldatapb.BackupRequest, opts ...grpc.CallOption) (vtctlservicepb.Vtctld_BackupClient, error) { 88 if client.c == nil { 89 return nil, status.Error(codes.Unavailable, connClosedMsg) 90 } 91 92 return client.c.Backup(ctx, in, opts...) 93 } 94 95 // BackupShard is part of the vtctlservicepb.VtctldClient interface. 96 func (client *gRPCVtctldClient) BackupShard(ctx context.Context, in *vtctldatapb.BackupShardRequest, opts ...grpc.CallOption) (vtctlservicepb.Vtctld_BackupShardClient, error) { 97 if client.c == nil { 98 return nil, status.Error(codes.Unavailable, connClosedMsg) 99 } 100 101 return client.c.BackupShard(ctx, in, opts...) 102 } 103 104 // ChangeTabletType is part of the vtctlservicepb.VtctldClient interface. 105 func (client *gRPCVtctldClient) ChangeTabletType(ctx context.Context, in *vtctldatapb.ChangeTabletTypeRequest, opts ...grpc.CallOption) (*vtctldatapb.ChangeTabletTypeResponse, error) { 106 if client.c == nil { 107 return nil, status.Error(codes.Unavailable, connClosedMsg) 108 } 109 110 return client.c.ChangeTabletType(ctx, in, opts...) 111 } 112 113 // CreateKeyspace is part of the vtctlservicepb.VtctldClient interface. 114 func (client *gRPCVtctldClient) CreateKeyspace(ctx context.Context, in *vtctldatapb.CreateKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.CreateKeyspaceResponse, error) { 115 if client.c == nil { 116 return nil, status.Error(codes.Unavailable, connClosedMsg) 117 } 118 119 return client.c.CreateKeyspace(ctx, in, opts...) 120 } 121 122 // CreateShard is part of the vtctlservicepb.VtctldClient interface. 123 func (client *gRPCVtctldClient) CreateShard(ctx context.Context, in *vtctldatapb.CreateShardRequest, opts ...grpc.CallOption) (*vtctldatapb.CreateShardResponse, error) { 124 if client.c == nil { 125 return nil, status.Error(codes.Unavailable, connClosedMsg) 126 } 127 128 return client.c.CreateShard(ctx, in, opts...) 129 } 130 131 // DeleteCellInfo is part of the vtctlservicepb.VtctldClient interface. 132 func (client *gRPCVtctldClient) DeleteCellInfo(ctx context.Context, in *vtctldatapb.DeleteCellInfoRequest, opts ...grpc.CallOption) (*vtctldatapb.DeleteCellInfoResponse, error) { 133 if client.c == nil { 134 return nil, status.Error(codes.Unavailable, connClosedMsg) 135 } 136 137 return client.c.DeleteCellInfo(ctx, in, opts...) 138 } 139 140 // DeleteCellsAlias is part of the vtctlservicepb.VtctldClient interface. 141 func (client *gRPCVtctldClient) DeleteCellsAlias(ctx context.Context, in *vtctldatapb.DeleteCellsAliasRequest, opts ...grpc.CallOption) (*vtctldatapb.DeleteCellsAliasResponse, error) { 142 if client.c == nil { 143 return nil, status.Error(codes.Unavailable, connClosedMsg) 144 } 145 146 return client.c.DeleteCellsAlias(ctx, in, opts...) 147 } 148 149 // DeleteKeyspace is part of the vtctlservicepb.VtctldClient interface. 150 func (client *gRPCVtctldClient) DeleteKeyspace(ctx context.Context, in *vtctldatapb.DeleteKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.DeleteKeyspaceResponse, error) { 151 if client.c == nil { 152 return nil, status.Error(codes.Unavailable, connClosedMsg) 153 } 154 155 return client.c.DeleteKeyspace(ctx, in, opts...) 156 } 157 158 // DeleteShards is part of the vtctlservicepb.VtctldClient interface. 159 func (client *gRPCVtctldClient) DeleteShards(ctx context.Context, in *vtctldatapb.DeleteShardsRequest, opts ...grpc.CallOption) (*vtctldatapb.DeleteShardsResponse, error) { 160 if client.c == nil { 161 return nil, status.Error(codes.Unavailable, connClosedMsg) 162 } 163 164 return client.c.DeleteShards(ctx, in, opts...) 165 } 166 167 // DeleteSrvVSchema is part of the vtctlservicepb.VtctldClient interface. 168 func (client *gRPCVtctldClient) DeleteSrvVSchema(ctx context.Context, in *vtctldatapb.DeleteSrvVSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.DeleteSrvVSchemaResponse, error) { 169 if client.c == nil { 170 return nil, status.Error(codes.Unavailable, connClosedMsg) 171 } 172 173 return client.c.DeleteSrvVSchema(ctx, in, opts...) 174 } 175 176 // DeleteTablets is part of the vtctlservicepb.VtctldClient interface. 177 func (client *gRPCVtctldClient) DeleteTablets(ctx context.Context, in *vtctldatapb.DeleteTabletsRequest, opts ...grpc.CallOption) (*vtctldatapb.DeleteTabletsResponse, error) { 178 if client.c == nil { 179 return nil, status.Error(codes.Unavailable, connClosedMsg) 180 } 181 182 return client.c.DeleteTablets(ctx, in, opts...) 183 } 184 185 // EmergencyReparentShard is part of the vtctlservicepb.VtctldClient interface. 186 func (client *gRPCVtctldClient) EmergencyReparentShard(ctx context.Context, in *vtctldatapb.EmergencyReparentShardRequest, opts ...grpc.CallOption) (*vtctldatapb.EmergencyReparentShardResponse, error) { 187 if client.c == nil { 188 return nil, status.Error(codes.Unavailable, connClosedMsg) 189 } 190 191 return client.c.EmergencyReparentShard(ctx, in, opts...) 192 } 193 194 // ExecuteFetchAsApp is part of the vtctlservicepb.VtctldClient interface. 195 func (client *gRPCVtctldClient) ExecuteFetchAsApp(ctx context.Context, in *vtctldatapb.ExecuteFetchAsAppRequest, opts ...grpc.CallOption) (*vtctldatapb.ExecuteFetchAsAppResponse, error) { 196 if client.c == nil { 197 return nil, status.Error(codes.Unavailable, connClosedMsg) 198 } 199 200 return client.c.ExecuteFetchAsApp(ctx, in, opts...) 201 } 202 203 // ExecuteFetchAsDBA is part of the vtctlservicepb.VtctldClient interface. 204 func (client *gRPCVtctldClient) ExecuteFetchAsDBA(ctx context.Context, in *vtctldatapb.ExecuteFetchAsDBARequest, opts ...grpc.CallOption) (*vtctldatapb.ExecuteFetchAsDBAResponse, error) { 205 if client.c == nil { 206 return nil, status.Error(codes.Unavailable, connClosedMsg) 207 } 208 209 return client.c.ExecuteFetchAsDBA(ctx, in, opts...) 210 } 211 212 // ExecuteHook is part of the vtctlservicepb.VtctldClient interface. 213 func (client *gRPCVtctldClient) ExecuteHook(ctx context.Context, in *vtctldatapb.ExecuteHookRequest, opts ...grpc.CallOption) (*vtctldatapb.ExecuteHookResponse, error) { 214 if client.c == nil { 215 return nil, status.Error(codes.Unavailable, connClosedMsg) 216 } 217 218 return client.c.ExecuteHook(ctx, in, opts...) 219 } 220 221 // FindAllShardsInKeyspace is part of the vtctlservicepb.VtctldClient interface. 222 func (client *gRPCVtctldClient) FindAllShardsInKeyspace(ctx context.Context, in *vtctldatapb.FindAllShardsInKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.FindAllShardsInKeyspaceResponse, error) { 223 if client.c == nil { 224 return nil, status.Error(codes.Unavailable, connClosedMsg) 225 } 226 227 return client.c.FindAllShardsInKeyspace(ctx, in, opts...) 228 } 229 230 // GetBackups is part of the vtctlservicepb.VtctldClient interface. 231 func (client *gRPCVtctldClient) GetBackups(ctx context.Context, in *vtctldatapb.GetBackupsRequest, opts ...grpc.CallOption) (*vtctldatapb.GetBackupsResponse, error) { 232 if client.c == nil { 233 return nil, status.Error(codes.Unavailable, connClosedMsg) 234 } 235 236 return client.c.GetBackups(ctx, in, opts...) 237 } 238 239 // GetCellInfo is part of the vtctlservicepb.VtctldClient interface. 240 func (client *gRPCVtctldClient) GetCellInfo(ctx context.Context, in *vtctldatapb.GetCellInfoRequest, opts ...grpc.CallOption) (*vtctldatapb.GetCellInfoResponse, error) { 241 if client.c == nil { 242 return nil, status.Error(codes.Unavailable, connClosedMsg) 243 } 244 245 return client.c.GetCellInfo(ctx, in, opts...) 246 } 247 248 // GetCellInfoNames is part of the vtctlservicepb.VtctldClient interface. 249 func (client *gRPCVtctldClient) GetCellInfoNames(ctx context.Context, in *vtctldatapb.GetCellInfoNamesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetCellInfoNamesResponse, error) { 250 if client.c == nil { 251 return nil, status.Error(codes.Unavailable, connClosedMsg) 252 } 253 254 return client.c.GetCellInfoNames(ctx, in, opts...) 255 } 256 257 // GetCellsAliases is part of the vtctlservicepb.VtctldClient interface. 258 func (client *gRPCVtctldClient) GetCellsAliases(ctx context.Context, in *vtctldatapb.GetCellsAliasesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetCellsAliasesResponse, error) { 259 if client.c == nil { 260 return nil, status.Error(codes.Unavailable, connClosedMsg) 261 } 262 263 return client.c.GetCellsAliases(ctx, in, opts...) 264 } 265 266 // GetFullStatus is part of the vtctlservicepb.VtctldClient interface. 267 func (client *gRPCVtctldClient) GetFullStatus(ctx context.Context, in *vtctldatapb.GetFullStatusRequest, opts ...grpc.CallOption) (*vtctldatapb.GetFullStatusResponse, error) { 268 if client.c == nil { 269 return nil, status.Error(codes.Unavailable, connClosedMsg) 270 } 271 272 return client.c.GetFullStatus(ctx, in, opts...) 273 } 274 275 // GetKeyspace is part of the vtctlservicepb.VtctldClient interface. 276 func (client *gRPCVtctldClient) GetKeyspace(ctx context.Context, in *vtctldatapb.GetKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.GetKeyspaceResponse, error) { 277 if client.c == nil { 278 return nil, status.Error(codes.Unavailable, connClosedMsg) 279 } 280 281 return client.c.GetKeyspace(ctx, in, opts...) 282 } 283 284 // GetKeyspaces is part of the vtctlservicepb.VtctldClient interface. 285 func (client *gRPCVtctldClient) GetKeyspaces(ctx context.Context, in *vtctldatapb.GetKeyspacesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetKeyspacesResponse, error) { 286 if client.c == nil { 287 return nil, status.Error(codes.Unavailable, connClosedMsg) 288 } 289 290 return client.c.GetKeyspaces(ctx, in, opts...) 291 } 292 293 // GetPermissions is part of the vtctlservicepb.VtctldClient interface. 294 func (client *gRPCVtctldClient) GetPermissions(ctx context.Context, in *vtctldatapb.GetPermissionsRequest, opts ...grpc.CallOption) (*vtctldatapb.GetPermissionsResponse, error) { 295 if client.c == nil { 296 return nil, status.Error(codes.Unavailable, connClosedMsg) 297 } 298 299 return client.c.GetPermissions(ctx, in, opts...) 300 } 301 302 // GetRoutingRules is part of the vtctlservicepb.VtctldClient interface. 303 func (client *gRPCVtctldClient) GetRoutingRules(ctx context.Context, in *vtctldatapb.GetRoutingRulesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetRoutingRulesResponse, error) { 304 if client.c == nil { 305 return nil, status.Error(codes.Unavailable, connClosedMsg) 306 } 307 308 return client.c.GetRoutingRules(ctx, in, opts...) 309 } 310 311 // GetSchema is part of the vtctlservicepb.VtctldClient interface. 312 func (client *gRPCVtctldClient) GetSchema(ctx context.Context, in *vtctldatapb.GetSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.GetSchemaResponse, error) { 313 if client.c == nil { 314 return nil, status.Error(codes.Unavailable, connClosedMsg) 315 } 316 317 return client.c.GetSchema(ctx, in, opts...) 318 } 319 320 // GetShard is part of the vtctlservicepb.VtctldClient interface. 321 func (client *gRPCVtctldClient) GetShard(ctx context.Context, in *vtctldatapb.GetShardRequest, opts ...grpc.CallOption) (*vtctldatapb.GetShardResponse, error) { 322 if client.c == nil { 323 return nil, status.Error(codes.Unavailable, connClosedMsg) 324 } 325 326 return client.c.GetShard(ctx, in, opts...) 327 } 328 329 // GetShardRoutingRules is part of the vtctlservicepb.VtctldClient interface. 330 func (client *gRPCVtctldClient) GetShardRoutingRules(ctx context.Context, in *vtctldatapb.GetShardRoutingRulesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetShardRoutingRulesResponse, error) { 331 if client.c == nil { 332 return nil, status.Error(codes.Unavailable, connClosedMsg) 333 } 334 335 return client.c.GetShardRoutingRules(ctx, in, opts...) 336 } 337 338 // GetSrvKeyspaceNames is part of the vtctlservicepb.VtctldClient interface. 339 func (client *gRPCVtctldClient) GetSrvKeyspaceNames(ctx context.Context, in *vtctldatapb.GetSrvKeyspaceNamesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetSrvKeyspaceNamesResponse, error) { 340 if client.c == nil { 341 return nil, status.Error(codes.Unavailable, connClosedMsg) 342 } 343 344 return client.c.GetSrvKeyspaceNames(ctx, in, opts...) 345 } 346 347 // GetSrvKeyspaces is part of the vtctlservicepb.VtctldClient interface. 348 func (client *gRPCVtctldClient) GetSrvKeyspaces(ctx context.Context, in *vtctldatapb.GetSrvKeyspacesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetSrvKeyspacesResponse, error) { 349 if client.c == nil { 350 return nil, status.Error(codes.Unavailable, connClosedMsg) 351 } 352 353 return client.c.GetSrvKeyspaces(ctx, in, opts...) 354 } 355 356 // GetSrvVSchema is part of the vtctlservicepb.VtctldClient interface. 357 func (client *gRPCVtctldClient) GetSrvVSchema(ctx context.Context, in *vtctldatapb.GetSrvVSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.GetSrvVSchemaResponse, error) { 358 if client.c == nil { 359 return nil, status.Error(codes.Unavailable, connClosedMsg) 360 } 361 362 return client.c.GetSrvVSchema(ctx, in, opts...) 363 } 364 365 // GetSrvVSchemas is part of the vtctlservicepb.VtctldClient interface. 366 func (client *gRPCVtctldClient) GetSrvVSchemas(ctx context.Context, in *vtctldatapb.GetSrvVSchemasRequest, opts ...grpc.CallOption) (*vtctldatapb.GetSrvVSchemasResponse, error) { 367 if client.c == nil { 368 return nil, status.Error(codes.Unavailable, connClosedMsg) 369 } 370 371 return client.c.GetSrvVSchemas(ctx, in, opts...) 372 } 373 374 // GetTablet is part of the vtctlservicepb.VtctldClient interface. 375 func (client *gRPCVtctldClient) GetTablet(ctx context.Context, in *vtctldatapb.GetTabletRequest, opts ...grpc.CallOption) (*vtctldatapb.GetTabletResponse, error) { 376 if client.c == nil { 377 return nil, status.Error(codes.Unavailable, connClosedMsg) 378 } 379 380 return client.c.GetTablet(ctx, in, opts...) 381 } 382 383 // GetTablets is part of the vtctlservicepb.VtctldClient interface. 384 func (client *gRPCVtctldClient) GetTablets(ctx context.Context, in *vtctldatapb.GetTabletsRequest, opts ...grpc.CallOption) (*vtctldatapb.GetTabletsResponse, error) { 385 if client.c == nil { 386 return nil, status.Error(codes.Unavailable, connClosedMsg) 387 } 388 389 return client.c.GetTablets(ctx, in, opts...) 390 } 391 392 // GetTopologyPath is part of the vtctlservicepb.VtctldClient interface. 393 func (client *gRPCVtctldClient) GetTopologyPath(ctx context.Context, in *vtctldatapb.GetTopologyPathRequest, opts ...grpc.CallOption) (*vtctldatapb.GetTopologyPathResponse, error) { 394 if client.c == nil { 395 return nil, status.Error(codes.Unavailable, connClosedMsg) 396 } 397 398 return client.c.GetTopologyPath(ctx, in, opts...) 399 } 400 401 // GetVSchema is part of the vtctlservicepb.VtctldClient interface. 402 func (client *gRPCVtctldClient) GetVSchema(ctx context.Context, in *vtctldatapb.GetVSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.GetVSchemaResponse, error) { 403 if client.c == nil { 404 return nil, status.Error(codes.Unavailable, connClosedMsg) 405 } 406 407 return client.c.GetVSchema(ctx, in, opts...) 408 } 409 410 // GetVersion is part of the vtctlservicepb.VtctldClient interface. 411 func (client *gRPCVtctldClient) GetVersion(ctx context.Context, in *vtctldatapb.GetVersionRequest, opts ...grpc.CallOption) (*vtctldatapb.GetVersionResponse, error) { 412 if client.c == nil { 413 return nil, status.Error(codes.Unavailable, connClosedMsg) 414 } 415 416 return client.c.GetVersion(ctx, in, opts...) 417 } 418 419 // GetWorkflows is part of the vtctlservicepb.VtctldClient interface. 420 func (client *gRPCVtctldClient) GetWorkflows(ctx context.Context, in *vtctldatapb.GetWorkflowsRequest, opts ...grpc.CallOption) (*vtctldatapb.GetWorkflowsResponse, error) { 421 if client.c == nil { 422 return nil, status.Error(codes.Unavailable, connClosedMsg) 423 } 424 425 return client.c.GetWorkflows(ctx, in, opts...) 426 } 427 428 // InitShardPrimary is part of the vtctlservicepb.VtctldClient interface. 429 func (client *gRPCVtctldClient) InitShardPrimary(ctx context.Context, in *vtctldatapb.InitShardPrimaryRequest, opts ...grpc.CallOption) (*vtctldatapb.InitShardPrimaryResponse, error) { 430 if client.c == nil { 431 return nil, status.Error(codes.Unavailable, connClosedMsg) 432 } 433 434 return client.c.InitShardPrimary(ctx, in, opts...) 435 } 436 437 // PingTablet is part of the vtctlservicepb.VtctldClient interface. 438 func (client *gRPCVtctldClient) PingTablet(ctx context.Context, in *vtctldatapb.PingTabletRequest, opts ...grpc.CallOption) (*vtctldatapb.PingTabletResponse, error) { 439 if client.c == nil { 440 return nil, status.Error(codes.Unavailable, connClosedMsg) 441 } 442 443 return client.c.PingTablet(ctx, in, opts...) 444 } 445 446 // PlannedReparentShard is part of the vtctlservicepb.VtctldClient interface. 447 func (client *gRPCVtctldClient) PlannedReparentShard(ctx context.Context, in *vtctldatapb.PlannedReparentShardRequest, opts ...grpc.CallOption) (*vtctldatapb.PlannedReparentShardResponse, error) { 448 if client.c == nil { 449 return nil, status.Error(codes.Unavailable, connClosedMsg) 450 } 451 452 return client.c.PlannedReparentShard(ctx, in, opts...) 453 } 454 455 // RebuildKeyspaceGraph is part of the vtctlservicepb.VtctldClient interface. 456 func (client *gRPCVtctldClient) RebuildKeyspaceGraph(ctx context.Context, in *vtctldatapb.RebuildKeyspaceGraphRequest, opts ...grpc.CallOption) (*vtctldatapb.RebuildKeyspaceGraphResponse, error) { 457 if client.c == nil { 458 return nil, status.Error(codes.Unavailable, connClosedMsg) 459 } 460 461 return client.c.RebuildKeyspaceGraph(ctx, in, opts...) 462 } 463 464 // RebuildVSchemaGraph is part of the vtctlservicepb.VtctldClient interface. 465 func (client *gRPCVtctldClient) RebuildVSchemaGraph(ctx context.Context, in *vtctldatapb.RebuildVSchemaGraphRequest, opts ...grpc.CallOption) (*vtctldatapb.RebuildVSchemaGraphResponse, error) { 466 if client.c == nil { 467 return nil, status.Error(codes.Unavailable, connClosedMsg) 468 } 469 470 return client.c.RebuildVSchemaGraph(ctx, in, opts...) 471 } 472 473 // RefreshState is part of the vtctlservicepb.VtctldClient interface. 474 func (client *gRPCVtctldClient) RefreshState(ctx context.Context, in *vtctldatapb.RefreshStateRequest, opts ...grpc.CallOption) (*vtctldatapb.RefreshStateResponse, error) { 475 if client.c == nil { 476 return nil, status.Error(codes.Unavailable, connClosedMsg) 477 } 478 479 return client.c.RefreshState(ctx, in, opts...) 480 } 481 482 // RefreshStateByShard is part of the vtctlservicepb.VtctldClient interface. 483 func (client *gRPCVtctldClient) RefreshStateByShard(ctx context.Context, in *vtctldatapb.RefreshStateByShardRequest, opts ...grpc.CallOption) (*vtctldatapb.RefreshStateByShardResponse, error) { 484 if client.c == nil { 485 return nil, status.Error(codes.Unavailable, connClosedMsg) 486 } 487 488 return client.c.RefreshStateByShard(ctx, in, opts...) 489 } 490 491 // ReloadSchema is part of the vtctlservicepb.VtctldClient interface. 492 func (client *gRPCVtctldClient) ReloadSchema(ctx context.Context, in *vtctldatapb.ReloadSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.ReloadSchemaResponse, error) { 493 if client.c == nil { 494 return nil, status.Error(codes.Unavailable, connClosedMsg) 495 } 496 497 return client.c.ReloadSchema(ctx, in, opts...) 498 } 499 500 // ReloadSchemaKeyspace is part of the vtctlservicepb.VtctldClient interface. 501 func (client *gRPCVtctldClient) ReloadSchemaKeyspace(ctx context.Context, in *vtctldatapb.ReloadSchemaKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.ReloadSchemaKeyspaceResponse, error) { 502 if client.c == nil { 503 return nil, status.Error(codes.Unavailable, connClosedMsg) 504 } 505 506 return client.c.ReloadSchemaKeyspace(ctx, in, opts...) 507 } 508 509 // ReloadSchemaShard is part of the vtctlservicepb.VtctldClient interface. 510 func (client *gRPCVtctldClient) ReloadSchemaShard(ctx context.Context, in *vtctldatapb.ReloadSchemaShardRequest, opts ...grpc.CallOption) (*vtctldatapb.ReloadSchemaShardResponse, error) { 511 if client.c == nil { 512 return nil, status.Error(codes.Unavailable, connClosedMsg) 513 } 514 515 return client.c.ReloadSchemaShard(ctx, in, opts...) 516 } 517 518 // RemoveBackup is part of the vtctlservicepb.VtctldClient interface. 519 func (client *gRPCVtctldClient) RemoveBackup(ctx context.Context, in *vtctldatapb.RemoveBackupRequest, opts ...grpc.CallOption) (*vtctldatapb.RemoveBackupResponse, error) { 520 if client.c == nil { 521 return nil, status.Error(codes.Unavailable, connClosedMsg) 522 } 523 524 return client.c.RemoveBackup(ctx, in, opts...) 525 } 526 527 // RemoveKeyspaceCell is part of the vtctlservicepb.VtctldClient interface. 528 func (client *gRPCVtctldClient) RemoveKeyspaceCell(ctx context.Context, in *vtctldatapb.RemoveKeyspaceCellRequest, opts ...grpc.CallOption) (*vtctldatapb.RemoveKeyspaceCellResponse, error) { 529 if client.c == nil { 530 return nil, status.Error(codes.Unavailable, connClosedMsg) 531 } 532 533 return client.c.RemoveKeyspaceCell(ctx, in, opts...) 534 } 535 536 // RemoveShardCell is part of the vtctlservicepb.VtctldClient interface. 537 func (client *gRPCVtctldClient) RemoveShardCell(ctx context.Context, in *vtctldatapb.RemoveShardCellRequest, opts ...grpc.CallOption) (*vtctldatapb.RemoveShardCellResponse, error) { 538 if client.c == nil { 539 return nil, status.Error(codes.Unavailable, connClosedMsg) 540 } 541 542 return client.c.RemoveShardCell(ctx, in, opts...) 543 } 544 545 // ReparentTablet is part of the vtctlservicepb.VtctldClient interface. 546 func (client *gRPCVtctldClient) ReparentTablet(ctx context.Context, in *vtctldatapb.ReparentTabletRequest, opts ...grpc.CallOption) (*vtctldatapb.ReparentTabletResponse, error) { 547 if client.c == nil { 548 return nil, status.Error(codes.Unavailable, connClosedMsg) 549 } 550 551 return client.c.ReparentTablet(ctx, in, opts...) 552 } 553 554 // RestoreFromBackup is part of the vtctlservicepb.VtctldClient interface. 555 func (client *gRPCVtctldClient) RestoreFromBackup(ctx context.Context, in *vtctldatapb.RestoreFromBackupRequest, opts ...grpc.CallOption) (vtctlservicepb.Vtctld_RestoreFromBackupClient, error) { 556 if client.c == nil { 557 return nil, status.Error(codes.Unavailable, connClosedMsg) 558 } 559 560 return client.c.RestoreFromBackup(ctx, in, opts...) 561 } 562 563 // RunHealthCheck is part of the vtctlservicepb.VtctldClient interface. 564 func (client *gRPCVtctldClient) RunHealthCheck(ctx context.Context, in *vtctldatapb.RunHealthCheckRequest, opts ...grpc.CallOption) (*vtctldatapb.RunHealthCheckResponse, error) { 565 if client.c == nil { 566 return nil, status.Error(codes.Unavailable, connClosedMsg) 567 } 568 569 return client.c.RunHealthCheck(ctx, in, opts...) 570 } 571 572 // SetKeyspaceDurabilityPolicy is part of the vtctlservicepb.VtctldClient interface. 573 func (client *gRPCVtctldClient) SetKeyspaceDurabilityPolicy(ctx context.Context, in *vtctldatapb.SetKeyspaceDurabilityPolicyRequest, opts ...grpc.CallOption) (*vtctldatapb.SetKeyspaceDurabilityPolicyResponse, error) { 574 if client.c == nil { 575 return nil, status.Error(codes.Unavailable, connClosedMsg) 576 } 577 578 return client.c.SetKeyspaceDurabilityPolicy(ctx, in, opts...) 579 } 580 581 // SetShardIsPrimaryServing is part of the vtctlservicepb.VtctldClient interface. 582 func (client *gRPCVtctldClient) SetShardIsPrimaryServing(ctx context.Context, in *vtctldatapb.SetShardIsPrimaryServingRequest, opts ...grpc.CallOption) (*vtctldatapb.SetShardIsPrimaryServingResponse, error) { 583 if client.c == nil { 584 return nil, status.Error(codes.Unavailable, connClosedMsg) 585 } 586 587 return client.c.SetShardIsPrimaryServing(ctx, in, opts...) 588 } 589 590 // SetShardTabletControl is part of the vtctlservicepb.VtctldClient interface. 591 func (client *gRPCVtctldClient) SetShardTabletControl(ctx context.Context, in *vtctldatapb.SetShardTabletControlRequest, opts ...grpc.CallOption) (*vtctldatapb.SetShardTabletControlResponse, error) { 592 if client.c == nil { 593 return nil, status.Error(codes.Unavailable, connClosedMsg) 594 } 595 596 return client.c.SetShardTabletControl(ctx, in, opts...) 597 } 598 599 // SetWritable is part of the vtctlservicepb.VtctldClient interface. 600 func (client *gRPCVtctldClient) SetWritable(ctx context.Context, in *vtctldatapb.SetWritableRequest, opts ...grpc.CallOption) (*vtctldatapb.SetWritableResponse, error) { 601 if client.c == nil { 602 return nil, status.Error(codes.Unavailable, connClosedMsg) 603 } 604 605 return client.c.SetWritable(ctx, in, opts...) 606 } 607 608 // ShardReplicationAdd is part of the vtctlservicepb.VtctldClient interface. 609 func (client *gRPCVtctldClient) ShardReplicationAdd(ctx context.Context, in *vtctldatapb.ShardReplicationAddRequest, opts ...grpc.CallOption) (*vtctldatapb.ShardReplicationAddResponse, error) { 610 if client.c == nil { 611 return nil, status.Error(codes.Unavailable, connClosedMsg) 612 } 613 614 return client.c.ShardReplicationAdd(ctx, in, opts...) 615 } 616 617 // ShardReplicationFix is part of the vtctlservicepb.VtctldClient interface. 618 func (client *gRPCVtctldClient) ShardReplicationFix(ctx context.Context, in *vtctldatapb.ShardReplicationFixRequest, opts ...grpc.CallOption) (*vtctldatapb.ShardReplicationFixResponse, error) { 619 if client.c == nil { 620 return nil, status.Error(codes.Unavailable, connClosedMsg) 621 } 622 623 return client.c.ShardReplicationFix(ctx, in, opts...) 624 } 625 626 // ShardReplicationPositions is part of the vtctlservicepb.VtctldClient interface. 627 func (client *gRPCVtctldClient) ShardReplicationPositions(ctx context.Context, in *vtctldatapb.ShardReplicationPositionsRequest, opts ...grpc.CallOption) (*vtctldatapb.ShardReplicationPositionsResponse, error) { 628 if client.c == nil { 629 return nil, status.Error(codes.Unavailable, connClosedMsg) 630 } 631 632 return client.c.ShardReplicationPositions(ctx, in, opts...) 633 } 634 635 // ShardReplicationRemove is part of the vtctlservicepb.VtctldClient interface. 636 func (client *gRPCVtctldClient) ShardReplicationRemove(ctx context.Context, in *vtctldatapb.ShardReplicationRemoveRequest, opts ...grpc.CallOption) (*vtctldatapb.ShardReplicationRemoveResponse, error) { 637 if client.c == nil { 638 return nil, status.Error(codes.Unavailable, connClosedMsg) 639 } 640 641 return client.c.ShardReplicationRemove(ctx, in, opts...) 642 } 643 644 // SleepTablet is part of the vtctlservicepb.VtctldClient interface. 645 func (client *gRPCVtctldClient) SleepTablet(ctx context.Context, in *vtctldatapb.SleepTabletRequest, opts ...grpc.CallOption) (*vtctldatapb.SleepTabletResponse, error) { 646 if client.c == nil { 647 return nil, status.Error(codes.Unavailable, connClosedMsg) 648 } 649 650 return client.c.SleepTablet(ctx, in, opts...) 651 } 652 653 // SourceShardAdd is part of the vtctlservicepb.VtctldClient interface. 654 func (client *gRPCVtctldClient) SourceShardAdd(ctx context.Context, in *vtctldatapb.SourceShardAddRequest, opts ...grpc.CallOption) (*vtctldatapb.SourceShardAddResponse, error) { 655 if client.c == nil { 656 return nil, status.Error(codes.Unavailable, connClosedMsg) 657 } 658 659 return client.c.SourceShardAdd(ctx, in, opts...) 660 } 661 662 // SourceShardDelete is part of the vtctlservicepb.VtctldClient interface. 663 func (client *gRPCVtctldClient) SourceShardDelete(ctx context.Context, in *vtctldatapb.SourceShardDeleteRequest, opts ...grpc.CallOption) (*vtctldatapb.SourceShardDeleteResponse, error) { 664 if client.c == nil { 665 return nil, status.Error(codes.Unavailable, connClosedMsg) 666 } 667 668 return client.c.SourceShardDelete(ctx, in, opts...) 669 } 670 671 // StartReplication is part of the vtctlservicepb.VtctldClient interface. 672 func (client *gRPCVtctldClient) StartReplication(ctx context.Context, in *vtctldatapb.StartReplicationRequest, opts ...grpc.CallOption) (*vtctldatapb.StartReplicationResponse, error) { 673 if client.c == nil { 674 return nil, status.Error(codes.Unavailable, connClosedMsg) 675 } 676 677 return client.c.StartReplication(ctx, in, opts...) 678 } 679 680 // StopReplication is part of the vtctlservicepb.VtctldClient interface. 681 func (client *gRPCVtctldClient) StopReplication(ctx context.Context, in *vtctldatapb.StopReplicationRequest, opts ...grpc.CallOption) (*vtctldatapb.StopReplicationResponse, error) { 682 if client.c == nil { 683 return nil, status.Error(codes.Unavailable, connClosedMsg) 684 } 685 686 return client.c.StopReplication(ctx, in, opts...) 687 } 688 689 // TabletExternallyReparented is part of the vtctlservicepb.VtctldClient interface. 690 func (client *gRPCVtctldClient) TabletExternallyReparented(ctx context.Context, in *vtctldatapb.TabletExternallyReparentedRequest, opts ...grpc.CallOption) (*vtctldatapb.TabletExternallyReparentedResponse, error) { 691 if client.c == nil { 692 return nil, status.Error(codes.Unavailable, connClosedMsg) 693 } 694 695 return client.c.TabletExternallyReparented(ctx, in, opts...) 696 } 697 698 // UpdateCellInfo is part of the vtctlservicepb.VtctldClient interface. 699 func (client *gRPCVtctldClient) UpdateCellInfo(ctx context.Context, in *vtctldatapb.UpdateCellInfoRequest, opts ...grpc.CallOption) (*vtctldatapb.UpdateCellInfoResponse, error) { 700 if client.c == nil { 701 return nil, status.Error(codes.Unavailable, connClosedMsg) 702 } 703 704 return client.c.UpdateCellInfo(ctx, in, opts...) 705 } 706 707 // UpdateCellsAlias is part of the vtctlservicepb.VtctldClient interface. 708 func (client *gRPCVtctldClient) UpdateCellsAlias(ctx context.Context, in *vtctldatapb.UpdateCellsAliasRequest, opts ...grpc.CallOption) (*vtctldatapb.UpdateCellsAliasResponse, error) { 709 if client.c == nil { 710 return nil, status.Error(codes.Unavailable, connClosedMsg) 711 } 712 713 return client.c.UpdateCellsAlias(ctx, in, opts...) 714 } 715 716 // UpdateThrottlerConfig is part of the vtctlservicepb.VtctldClient interface. 717 func (client *gRPCVtctldClient) UpdateThrottlerConfig(ctx context.Context, in *vtctldatapb.UpdateThrottlerConfigRequest, opts ...grpc.CallOption) (*vtctldatapb.UpdateThrottlerConfigResponse, error) { 718 if client.c == nil { 719 return nil, status.Error(codes.Unavailable, connClosedMsg) 720 } 721 722 return client.c.UpdateThrottlerConfig(ctx, in, opts...) 723 } 724 725 // Validate is part of the vtctlservicepb.VtctldClient interface. 726 func (client *gRPCVtctldClient) Validate(ctx context.Context, in *vtctldatapb.ValidateRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateResponse, error) { 727 if client.c == nil { 728 return nil, status.Error(codes.Unavailable, connClosedMsg) 729 } 730 731 return client.c.Validate(ctx, in, opts...) 732 } 733 734 // ValidateKeyspace is part of the vtctlservicepb.VtctldClient interface. 735 func (client *gRPCVtctldClient) ValidateKeyspace(ctx context.Context, in *vtctldatapb.ValidateKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateKeyspaceResponse, error) { 736 if client.c == nil { 737 return nil, status.Error(codes.Unavailable, connClosedMsg) 738 } 739 740 return client.c.ValidateKeyspace(ctx, in, opts...) 741 } 742 743 // ValidateSchemaKeyspace is part of the vtctlservicepb.VtctldClient interface. 744 func (client *gRPCVtctldClient) ValidateSchemaKeyspace(ctx context.Context, in *vtctldatapb.ValidateSchemaKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateSchemaKeyspaceResponse, error) { 745 if client.c == nil { 746 return nil, status.Error(codes.Unavailable, connClosedMsg) 747 } 748 749 return client.c.ValidateSchemaKeyspace(ctx, in, opts...) 750 } 751 752 // ValidateShard is part of the vtctlservicepb.VtctldClient interface. 753 func (client *gRPCVtctldClient) ValidateShard(ctx context.Context, in *vtctldatapb.ValidateShardRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateShardResponse, error) { 754 if client.c == nil { 755 return nil, status.Error(codes.Unavailable, connClosedMsg) 756 } 757 758 return client.c.ValidateShard(ctx, in, opts...) 759 } 760 761 // ValidateVSchema is part of the vtctlservicepb.VtctldClient interface. 762 func (client *gRPCVtctldClient) ValidateVSchema(ctx context.Context, in *vtctldatapb.ValidateVSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateVSchemaResponse, error) { 763 if client.c == nil { 764 return nil, status.Error(codes.Unavailable, connClosedMsg) 765 } 766 767 return client.c.ValidateVSchema(ctx, in, opts...) 768 } 769 770 // ValidateVersionKeyspace is part of the vtctlservicepb.VtctldClient interface. 771 func (client *gRPCVtctldClient) ValidateVersionKeyspace(ctx context.Context, in *vtctldatapb.ValidateVersionKeyspaceRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateVersionKeyspaceResponse, error) { 772 if client.c == nil { 773 return nil, status.Error(codes.Unavailable, connClosedMsg) 774 } 775 776 return client.c.ValidateVersionKeyspace(ctx, in, opts...) 777 } 778 779 // ValidateVersionShard is part of the vtctlservicepb.VtctldClient interface. 780 func (client *gRPCVtctldClient) ValidateVersionShard(ctx context.Context, in *vtctldatapb.ValidateVersionShardRequest, opts ...grpc.CallOption) (*vtctldatapb.ValidateVersionShardResponse, error) { 781 if client.c == nil { 782 return nil, status.Error(codes.Unavailable, connClosedMsg) 783 } 784 785 return client.c.ValidateVersionShard(ctx, in, opts...) 786 }