| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// - protoc-gen-go-grpc v1.3.0 |
| 18 |
// - protoc v4.25.7 |
| 19 |
// source: google/area120/tables/v1alpha1/tables.proto |
| 20 |
|
| 21 |
package tablespb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
grpc "google.golang.org/grpc" |
| 26 |
codes "google.golang.org/grpc/codes" |
| 27 |
status "google.golang.org/grpc/status" |
| 28 |
emptypb "google.golang.org/protobuf/types/known/emptypb" |
| 29 |
) |
| 30 |
|
| 31 |
// This is a compile-time assertion to ensure that this generated file |
| 32 |
// is compatible with the grpc package it is being compiled against. |
| 33 |
// Requires gRPC-Go v1.32.0 or later. |
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
TablesService_GetTable_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/GetTable" |
| 38 |
TablesService_ListTables_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/ListTables" |
| 39 |
TablesService_GetWorkspace_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/GetWorkspace" |
| 40 |
TablesService_ListWorkspaces_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/ListWorkspaces" |
| 41 |
TablesService_GetRow_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/GetRow" |
| 42 |
TablesService_ListRows_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/ListRows" |
| 43 |
TablesService_CreateRow_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/CreateRow" |
| 44 |
TablesService_BatchCreateRows_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/BatchCreateRows" |
| 45 |
TablesService_UpdateRow_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/UpdateRow" |
| 46 |
TablesService_BatchUpdateRows_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/BatchUpdateRows" |
| 47 |
TablesService_DeleteRow_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/DeleteRow" |
| 48 |
TablesService_BatchDeleteRows_FullMethodName = "/google.area120.tables.v1alpha1.TablesService/BatchDeleteRows" |
| 49 |
) |
| 50 |
|
| 51 |
// TablesServiceClient is the client API for TablesService service. |
| 52 |
// |
| 53 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 54 |
type TablesServiceClient interface { |
| 55 |
// Gets a table. Returns NOT_FOUND if the table does not exist. |
| 56 |
GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*Table, error) |
| 57 |
// Lists tables for the user. |
| 58 |
ListTables(ctx context.Context, in *ListTablesRequest, opts ...grpc.CallOption) (*ListTablesResponse, error) |
| 59 |
// Gets a workspace. Returns NOT_FOUND if the workspace does not exist. |
| 60 |
GetWorkspace(ctx context.Context, in *GetWorkspaceRequest, opts ...grpc.CallOption) (*Workspace, error) |
| 61 |
// Lists workspaces for the user. |
| 62 |
ListWorkspaces(ctx context.Context, in *ListWorkspacesRequest, opts ...grpc.CallOption) (*ListWorkspacesResponse, error) |
| 63 |
// Gets a row. Returns NOT_FOUND if the row does not exist in the table. |
| 64 |
GetRow(ctx context.Context, in *GetRowRequest, opts ...grpc.CallOption) (*Row, error) |
| 65 |
// Lists rows in a table. Returns NOT_FOUND if the table does not exist. |
| 66 |
ListRows(ctx context.Context, in *ListRowsRequest, opts ...grpc.CallOption) (*ListRowsResponse, error) |
| 67 |
// Creates a row. |
| 68 |
CreateRow(ctx context.Context, in *CreateRowRequest, opts ...grpc.CallOption) (*Row, error) |
| 69 |
// Creates multiple rows. |
| 70 |
BatchCreateRows(ctx context.Context, in *BatchCreateRowsRequest, opts ...grpc.CallOption) (*BatchCreateRowsResponse, error) |
| 71 |
// Updates a row. |
| 72 |
UpdateRow(ctx context.Context, in *UpdateRowRequest, opts ...grpc.CallOption) (*Row, error) |
| 73 |
// Updates multiple rows. |
| 74 |
BatchUpdateRows(ctx context.Context, in *BatchUpdateRowsRequest, opts ...grpc.CallOption) (*BatchUpdateRowsResponse, error) |
| 75 |
// Deletes a row. |
| 76 |
DeleteRow(ctx context.Context, in *DeleteRowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 77 |
// Deletes multiple rows. |
| 78 |
BatchDeleteRows(ctx context.Context, in *BatchDeleteRowsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 79 |
} |
| 80 |
|
| 81 |
type tablesServiceClient struct { |
| 82 |
cc grpc.ClientConnInterface |
| 83 |
} |
| 84 |
|
| 85 |
func NewTablesServiceClient(cc grpc.ClientConnInterface) TablesServiceClient { |
| 86 |
return &tablesServiceClient{cc} |
| 87 |
} |
| 88 |
|
| 89 |
func (c *tablesServiceClient) GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*Table, error) { |
| 90 |
out := new(Table) |
| 91 |
err := c.cc.Invoke(ctx, TablesService_GetTable_FullMethodName, in, out, opts...) |
| 92 |
if err != nil { |
| 93 |
return nil, err |
| 94 |
} |
| 95 |
return out, nil |
| 96 |
} |
| 97 |
|
| 98 |
func (c *tablesServiceClient) ListTables(ctx context.Context, in *ListTablesRequest, opts ...grpc.CallOption) (*ListTablesResponse, error) { |
| 99 |
out := new(ListTablesResponse) |
| 100 |
err := c.cc.Invoke(ctx, TablesService_ListTables_FullMethodName, in, out, opts...) |
| 101 |
if err != nil { |
| 102 |
return nil, err |
| 103 |
} |
| 104 |
return out, nil |
| 105 |
} |
| 106 |
|
| 107 |
func (c *tablesServiceClient) GetWorkspace(ctx context.Context, in *GetWorkspaceRequest, opts ...grpc.CallOption) (*Workspace, error) { |
| 108 |
out := new(Workspace) |
| 109 |
err := c.cc.Invoke(ctx, TablesService_GetWorkspace_FullMethodName, in, out, opts...) |
| 110 |
if err != nil { |
| 111 |
return nil, err |
| 112 |
} |
| 113 |
return out, nil |
| 114 |
} |
| 115 |
|
| 116 |
func (c *tablesServiceClient) ListWorkspaces(ctx context.Context, in *ListWorkspacesRequest, opts ...grpc.CallOption) (*ListWorkspacesResponse, error) { |
| 117 |
out := new(ListWorkspacesResponse) |
| 118 |
err := c.cc.Invoke(ctx, TablesService_ListWorkspaces_FullMethodName, in, out, opts...) |
| 119 |
if err != nil { |
| 120 |
return nil, err |
| 121 |
} |
| 122 |
return out, nil |
| 123 |
} |
| 124 |
|
| 125 |
func (c *tablesServiceClient) GetRow(ctx context.Context, in *GetRowRequest, opts ...grpc.CallOption) (*Row, error) { |
| 126 |
out := new(Row) |
| 127 |
err := c.cc.Invoke(ctx, TablesService_GetRow_FullMethodName, in, out, opts...) |
| 128 |
if err != nil { |
| 129 |
return nil, err |
| 130 |
} |
| 131 |
return out, nil |
| 132 |
} |
| 133 |
|
| 134 |
func (c *tablesServiceClient) ListRows(ctx context.Context, in *ListRowsRequest, opts ...grpc.CallOption) (*ListRowsResponse, error) { |
| 135 |
out := new(ListRowsResponse) |
| 136 |
err := c.cc.Invoke(ctx, TablesService_ListRows_FullMethodName, in, out, opts...) |
| 137 |
if err != nil { |
| 138 |
return nil, err |
| 139 |
} |
| 140 |
return out, nil |
| 141 |
} |
| 142 |
|
| 143 |
func (c *tablesServiceClient) CreateRow(ctx context.Context, in *CreateRowRequest, opts ...grpc.CallOption) (*Row, error) { |
| 144 |
out := new(Row) |
| 145 |
err := c.cc.Invoke(ctx, TablesService_CreateRow_FullMethodName, in, out, opts...) |
| 146 |
if err != nil { |
| 147 |
return nil, err |
| 148 |
} |
| 149 |
return out, nil |
| 150 |
} |
| 151 |
|
| 152 |
func (c *tablesServiceClient) BatchCreateRows(ctx context.Context, in *BatchCreateRowsRequest, opts ...grpc.CallOption) (*BatchCreateRowsResponse, error) { |
| 153 |
out := new(BatchCreateRowsResponse) |
| 154 |
err := c.cc.Invoke(ctx, TablesService_BatchCreateRows_FullMethodName, in, out, opts...) |
| 155 |
if err != nil { |
| 156 |
return nil, err |
| 157 |
} |
| 158 |
return out, nil |
| 159 |
} |
| 160 |
|
| 161 |
func (c *tablesServiceClient) UpdateRow(ctx context.Context, in *UpdateRowRequest, opts ...grpc.CallOption) (*Row, error) { |
| 162 |
out := new(Row) |
| 163 |
err := c.cc.Invoke(ctx, TablesService_UpdateRow_FullMethodName, in, out, opts...) |
| 164 |
if err != nil { |
| 165 |
return nil, err |
| 166 |
} |
| 167 |
return out, nil |
| 168 |
} |
| 169 |
|
| 170 |
func (c *tablesServiceClient) BatchUpdateRows(ctx context.Context, in *BatchUpdateRowsRequest, opts ...grpc.CallOption) (*BatchUpdateRowsResponse, error) { |
| 171 |
out := new(BatchUpdateRowsResponse) |
| 172 |
err := c.cc.Invoke(ctx, TablesService_BatchUpdateRows_FullMethodName, in, out, opts...) |
| 173 |
if err != nil { |
| 174 |
return nil, err |
| 175 |
} |
| 176 |
return out, nil |
| 177 |
} |
| 178 |
|
| 179 |
func (c *tablesServiceClient) DeleteRow(ctx context.Context, in *DeleteRowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 180 |
out := new(emptypb.Empty) |
| 181 |
err := c.cc.Invoke(ctx, TablesService_DeleteRow_FullMethodName, in, out, opts...) |
| 182 |
if err != nil { |
| 183 |
return nil, err |
| 184 |
} |
| 185 |
return out, nil |
| 186 |
} |
| 187 |
|
| 188 |
func (c *tablesServiceClient) BatchDeleteRows(ctx context.Context, in *BatchDeleteRowsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 189 |
out := new(emptypb.Empty) |
| 190 |
err := c.cc.Invoke(ctx, TablesService_BatchDeleteRows_FullMethodName, in, out, opts...) |
| 191 |
if err != nil { |
| 192 |
return nil, err |
| 193 |
} |
| 194 |
return out, nil |
| 195 |
} |
| 196 |
|
| 197 |
// TablesServiceServer is the server API for TablesService service. |
| 198 |
// All implementations should embed UnimplementedTablesServiceServer |
| 199 |
// for forward compatibility |
| 200 |
type TablesServiceServer interface { |
| 201 |
// Gets a table. Returns NOT_FOUND if the table does not exist. |
| 202 |
GetTable(context.Context, *GetTableRequest) (*Table, error) |
| 203 |
// Lists tables for the user. |
| 204 |
ListTables(context.Context, *ListTablesRequest) (*ListTablesResponse, error) |
| 205 |
// Gets a workspace. Returns NOT_FOUND if the workspace does not exist. |
| 206 |
GetWorkspace(context.Context, *GetWorkspaceRequest) (*Workspace, error) |
| 207 |
// Lists workspaces for the user. |
| 208 |
ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error) |
| 209 |
// Gets a row. Returns NOT_FOUND if the row does not exist in the table. |
| 210 |
GetRow(context.Context, *GetRowRequest) (*Row, error) |
| 211 |
// Lists rows in a table. Returns NOT_FOUND if the table does not exist. |
| 212 |
ListRows(context.Context, *ListRowsRequest) (*ListRowsResponse, error) |
| 213 |
// Creates a row. |
| 214 |
CreateRow(context.Context, *CreateRowRequest) (*Row, error) |
| 215 |
// Creates multiple rows. |
| 216 |
BatchCreateRows(context.Context, *BatchCreateRowsRequest) (*BatchCreateRowsResponse, error) |
| 217 |
// Updates a row. |
| 218 |
UpdateRow(context.Context, *UpdateRowRequest) (*Row, error) |
| 219 |
// Updates multiple rows. |
| 220 |
BatchUpdateRows(context.Context, *BatchUpdateRowsRequest) (*BatchUpdateRowsResponse, error) |
| 221 |
// Deletes a row. |
| 222 |
DeleteRow(context.Context, *DeleteRowRequest) (*emptypb.Empty, error) |
| 223 |
// Deletes multiple rows. |
| 224 |
BatchDeleteRows(context.Context, *BatchDeleteRowsRequest) (*emptypb.Empty, error) |
| 225 |
} |
| 226 |
|
| 227 |
// UnimplementedTablesServiceServer should be embedded to have forward compatible implementations. |
| 228 |
type UnimplementedTablesServiceServer struct { |
| 229 |
} |
| 230 |
|
| 231 |
func (UnimplementedTablesServiceServer) GetTable(context.Context, *GetTableRequest) (*Table, error) { |
| 232 |
return nil, status.Errorf(codes.Unimplemented, "method GetTable not implemented") |
| 233 |
} |
| 234 |
func (UnimplementedTablesServiceServer) ListTables(context.Context, *ListTablesRequest) (*ListTablesResponse, error) { |
| 235 |
return nil, status.Errorf(codes.Unimplemented, "method ListTables not implemented") |
| 236 |
} |
| 237 |
func (UnimplementedTablesServiceServer) GetWorkspace(context.Context, *GetWorkspaceRequest) (*Workspace, error) { |
| 238 |
return nil, status.Errorf(codes.Unimplemented, "method GetWorkspace not implemented") |
| 239 |
} |
| 240 |
func (UnimplementedTablesServiceServer) ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error) { |
| 241 |
return nil, status.Errorf(codes.Unimplemented, "method ListWorkspaces not implemented") |
| 242 |
} |
| 243 |
func (UnimplementedTablesServiceServer) GetRow(context.Context, *GetRowRequest) (*Row, error) { |
| 244 |
return nil, status.Errorf(codes.Unimplemented, "method GetRow not implemented") |
| 245 |
} |
| 246 |
func (UnimplementedTablesServiceServer) ListRows(context.Context, *ListRowsRequest) (*ListRowsResponse, error) { |
| 247 |
return nil, status.Errorf(codes.Unimplemented, "method ListRows not implemented") |
| 248 |
} |
| 249 |
func (UnimplementedTablesServiceServer) CreateRow(context.Context, *CreateRowRequest) (*Row, error) { |
| 250 |
return nil, status.Errorf(codes.Unimplemented, "method CreateRow not implemented") |
| 251 |
} |
| 252 |
func (UnimplementedTablesServiceServer) BatchCreateRows(context.Context, *BatchCreateRowsRequest) (*BatchCreateRowsResponse, error) { |
| 253 |
return nil, status.Errorf(codes.Unimplemented, "method BatchCreateRows not implemented") |
| 254 |
} |
| 255 |
func (UnimplementedTablesServiceServer) UpdateRow(context.Context, *UpdateRowRequest) (*Row, error) { |
| 256 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateRow not implemented") |
| 257 |
} |
| 258 |
func (UnimplementedTablesServiceServer) BatchUpdateRows(context.Context, *BatchUpdateRowsRequest) (*BatchUpdateRowsResponse, error) { |
| 259 |
return nil, status.Errorf(codes.Unimplemented, "method BatchUpdateRows not implemented") |
| 260 |
} |
| 261 |
func (UnimplementedTablesServiceServer) DeleteRow(context.Context, *DeleteRowRequest) (*emptypb.Empty, error) { |
| 262 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteRow not implemented") |
| 263 |
} |
| 264 |
func (UnimplementedTablesServiceServer) BatchDeleteRows(context.Context, *BatchDeleteRowsRequest) (*emptypb.Empty, error) { |
| 265 |
return nil, status.Errorf(codes.Unimplemented, "method BatchDeleteRows not implemented") |
| 266 |
} |
| 267 |
|
| 268 |
// UnsafeTablesServiceServer may be embedded to opt out of forward compatibility for this service. |
| 269 |
// Use of this interface is not recommended, as added methods to TablesServiceServer will |
| 270 |
// result in compilation errors. |
| 271 |
type UnsafeTablesServiceServer interface { |
| 272 |
mustEmbedUnimplementedTablesServiceServer() |
| 273 |
} |
| 274 |
|
| 275 |
func RegisterTablesServiceServer(s grpc.ServiceRegistrar, srv TablesServiceServer) { |
| 276 |
s.RegisterService(&TablesService_ServiceDesc, srv) |
| 277 |
} |
| 278 |
|
| 279 |
func _TablesService_GetTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 280 |
in := new(GetTableRequest) |
| 281 |
if err := dec(in); err != nil { |
| 282 |
return nil, err |
| 283 |
} |
| 284 |
if interceptor == nil { |
| 285 |
return srv.(TablesServiceServer).GetTable(ctx, in) |
| 286 |
} |
| 287 |
info := &grpc.UnaryServerInfo{ |
| 288 |
Server: srv, |
| 289 |
FullMethod: TablesService_GetTable_FullMethodName, |
| 290 |
} |
| 291 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 292 |
return srv.(TablesServiceServer).GetTable(ctx, req.(*GetTableRequest)) |
| 293 |
} |
| 294 |
return interceptor(ctx, in, info, handler) |
| 295 |
} |
| 296 |
|
| 297 |
func _TablesService_ListTables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 298 |
in := new(ListTablesRequest) |
| 299 |
if err := dec(in); err != nil { |
| 300 |
return nil, err |
| 301 |
} |
| 302 |
if interceptor == nil { |
| 303 |
return srv.(TablesServiceServer).ListTables(ctx, in) |
| 304 |
} |
| 305 |
info := &grpc.UnaryServerInfo{ |
| 306 |
Server: srv, |
| 307 |
FullMethod: TablesService_ListTables_FullMethodName, |
| 308 |
} |
| 309 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 310 |
return srv.(TablesServiceServer).ListTables(ctx, req.(*ListTablesRequest)) |
| 311 |
} |
| 312 |
return interceptor(ctx, in, info, handler) |
| 313 |
} |
| 314 |
|
| 315 |
func _TablesService_GetWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 316 |
in := new(GetWorkspaceRequest) |
| 317 |
if err := dec(in); err != nil { |
| 318 |
return nil, err |
| 319 |
} |
| 320 |
if interceptor == nil { |
| 321 |
return srv.(TablesServiceServer).GetWorkspace(ctx, in) |
| 322 |
} |
| 323 |
info := &grpc.UnaryServerInfo{ |
| 324 |
Server: srv, |
| 325 |
FullMethod: TablesService_GetWorkspace_FullMethodName, |
| 326 |
} |
| 327 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 328 |
return srv.(TablesServiceServer).GetWorkspace(ctx, req.(*GetWorkspaceRequest)) |
| 329 |
} |
| 330 |
return interceptor(ctx, in, info, handler) |
| 331 |
} |
| 332 |
|
| 333 |
func _TablesService_ListWorkspaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 334 |
in := new(ListWorkspacesRequest) |
| 335 |
if err := dec(in); err != nil { |
| 336 |
return nil, err |
| 337 |
} |
| 338 |
if interceptor == nil { |
| 339 |
return srv.(TablesServiceServer).ListWorkspaces(ctx, in) |
| 340 |
} |
| 341 |
info := &grpc.UnaryServerInfo{ |
| 342 |
Server: srv, |
| 343 |
FullMethod: TablesService_ListWorkspaces_FullMethodName, |
| 344 |
} |
| 345 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 346 |
return srv.(TablesServiceServer).ListWorkspaces(ctx, req.(*ListWorkspacesRequest)) |
| 347 |
} |
| 348 |
return interceptor(ctx, in, info, handler) |
| 349 |
} |
| 350 |
|
| 351 |
func _TablesService_GetRow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 352 |
in := new(GetRowRequest) |
| 353 |
if err := dec(in); err != nil { |
| 354 |
return nil, err |
| 355 |
} |
| 356 |
if interceptor == nil { |
| 357 |
return srv.(TablesServiceServer).GetRow(ctx, in) |
| 358 |
} |
| 359 |
info := &grpc.UnaryServerInfo{ |
| 360 |
Server: srv, |
| 361 |
FullMethod: TablesService_GetRow_FullMethodName, |
| 362 |
} |
| 363 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 364 |
return srv.(TablesServiceServer).GetRow(ctx, req.(*GetRowRequest)) |
| 365 |
} |
| 366 |
return interceptor(ctx, in, info, handler) |
| 367 |
} |
| 368 |
|
| 369 |
func _TablesService_ListRows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 370 |
in := new(ListRowsRequest) |
| 371 |
if err := dec(in); err != nil { |
| 372 |
return nil, err |
| 373 |
} |
| 374 |
if interceptor == nil { |
| 375 |
return srv.(TablesServiceServer).ListRows(ctx, in) |
| 376 |
} |
| 377 |
info := &grpc.UnaryServerInfo{ |
| 378 |
Server: srv, |
| 379 |
FullMethod: TablesService_ListRows_FullMethodName, |
| 380 |
} |
| 381 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 382 |
return srv.(TablesServiceServer).ListRows(ctx, req.(*ListRowsRequest)) |
| 383 |
} |
| 384 |
return interceptor(ctx, in, info, handler) |
| 385 |
} |
| 386 |
|
| 387 |
func _TablesService_CreateRow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 388 |
in := new(CreateRowRequest) |
| 389 |
if err := dec(in); err != nil { |
| 390 |
return nil, err |
| 391 |
} |
| 392 |
if interceptor == nil { |
| 393 |
return srv.(TablesServiceServer).CreateRow(ctx, in) |
| 394 |
} |
| 395 |
info := &grpc.UnaryServerInfo{ |
| 396 |
Server: srv, |
| 397 |
FullMethod: TablesService_CreateRow_FullMethodName, |
| 398 |
} |
| 399 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 400 |
return srv.(TablesServiceServer).CreateRow(ctx, req.(*CreateRowRequest)) |
| 401 |
} |
| 402 |
return interceptor(ctx, in, info, handler) |
| 403 |
} |
| 404 |
|
| 405 |
func _TablesService_BatchCreateRows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 406 |
in := new(BatchCreateRowsRequest) |
| 407 |
if err := dec(in); err != nil { |
| 408 |
return nil, err |
| 409 |
} |
| 410 |
if interceptor == nil { |
| 411 |
return srv.(TablesServiceServer).BatchCreateRows(ctx, in) |
| 412 |
} |
| 413 |
info := &grpc.UnaryServerInfo{ |
| 414 |
Server: srv, |
| 415 |
FullMethod: TablesService_BatchCreateRows_FullMethodName, |
| 416 |
} |
| 417 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 418 |
return srv.(TablesServiceServer).BatchCreateRows(ctx, req.(*BatchCreateRowsRequest)) |
| 419 |
} |
| 420 |
return interceptor(ctx, in, info, handler) |
| 421 |
} |
| 422 |
|
| 423 |
func _TablesService_UpdateRow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 424 |
in := new(UpdateRowRequest) |
| 425 |
if err := dec(in); err != nil { |
| 426 |
return nil, err |
| 427 |
} |
| 428 |
if interceptor == nil { |
| 429 |
return srv.(TablesServiceServer).UpdateRow(ctx, in) |
| 430 |
} |
| 431 |
info := &grpc.UnaryServerInfo{ |
| 432 |
Server: srv, |
| 433 |
FullMethod: TablesService_UpdateRow_FullMethodName, |
| 434 |
} |
| 435 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 436 |
return srv.(TablesServiceServer).UpdateRow(ctx, req.(*UpdateRowRequest)) |
| 437 |
} |
| 438 |
return interceptor(ctx, in, info, handler) |
| 439 |
} |
| 440 |
|
| 441 |
func _TablesService_BatchUpdateRows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 442 |
in := new(BatchUpdateRowsRequest) |
| 443 |
if err := dec(in); err != nil { |
| 444 |
return nil, err |
| 445 |
} |
| 446 |
if interceptor == nil { |
| 447 |
return srv.(TablesServiceServer).BatchUpdateRows(ctx, in) |
| 448 |
} |
| 449 |
info := &grpc.UnaryServerInfo{ |
| 450 |
Server: srv, |
| 451 |
FullMethod: TablesService_BatchUpdateRows_FullMethodName, |
| 452 |
} |
| 453 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 454 |
return srv.(TablesServiceServer).BatchUpdateRows(ctx, req.(*BatchUpdateRowsRequest)) |
| 455 |
} |
| 456 |
return interceptor(ctx, in, info, handler) |
| 457 |
} |
| 458 |
|
| 459 |
func _TablesService_DeleteRow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 460 |
in := new(DeleteRowRequest) |
| 461 |
if err := dec(in); err != nil { |
| 462 |
return nil, err |
| 463 |
} |
| 464 |
if interceptor == nil { |
| 465 |
return srv.(TablesServiceServer).DeleteRow(ctx, in) |
| 466 |
} |
| 467 |
info := &grpc.UnaryServerInfo{ |
| 468 |
Server: srv, |
| 469 |
FullMethod: TablesService_DeleteRow_FullMethodName, |
| 470 |
} |
| 471 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 472 |
return srv.(TablesServiceServer).DeleteRow(ctx, req.(*DeleteRowRequest)) |
| 473 |
} |
| 474 |
return interceptor(ctx, in, info, handler) |
| 475 |
} |
| 476 |
|
| 477 |
func _TablesService_BatchDeleteRows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 478 |
in := new(BatchDeleteRowsRequest) |
| 479 |
if err := dec(in); err != nil { |
| 480 |
return nil, err |
| 481 |
} |
| 482 |
if interceptor == nil { |
| 483 |
return srv.(TablesServiceServer).BatchDeleteRows(ctx, in) |
| 484 |
} |
| 485 |
info := &grpc.UnaryServerInfo{ |
| 486 |
Server: srv, |
| 487 |
FullMethod: TablesService_BatchDeleteRows_FullMethodName, |
| 488 |
} |
| 489 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 490 |
return srv.(TablesServiceServer).BatchDeleteRows(ctx, req.(*BatchDeleteRowsRequest)) |
| 491 |
} |
| 492 |
return interceptor(ctx, in, info, handler) |
| 493 |
} |
| 494 |
|
| 495 |
// TablesService_ServiceDesc is the grpc.ServiceDesc for TablesService service. |
| 496 |
// It's only intended for direct use with grpc.RegisterService, |
| 497 |
// and not to be introspected or modified (even as a copy) |
| 498 |
var TablesService_ServiceDesc = grpc.ServiceDesc{ |
| 499 |
ServiceName: "google.area120.tables.v1alpha1.TablesService", |
| 500 |
HandlerType: (*TablesServiceServer)(nil), |
| 501 |
Methods: []grpc.MethodDesc{ |
| 502 |
{ |
| 503 |
MethodName: "GetTable", |
| 504 |
Handler: _TablesService_GetTable_Handler, |
| 505 |
}, |
| 506 |
{ |
| 507 |
MethodName: "ListTables", |
| 508 |
Handler: _TablesService_ListTables_Handler, |
| 509 |
}, |
| 510 |
{ |
| 511 |
MethodName: "GetWorkspace", |
| 512 |
Handler: _TablesService_GetWorkspace_Handler, |
| 513 |
}, |
| 514 |
{ |
| 515 |
MethodName: "ListWorkspaces", |
| 516 |
Handler: _TablesService_ListWorkspaces_Handler, |
| 517 |
}, |
| 518 |
{ |
| 519 |
MethodName: "GetRow", |
| 520 |
Handler: _TablesService_GetRow_Handler, |
| 521 |
}, |
| 522 |
{ |
| 523 |
MethodName: "ListRows", |
| 524 |
Handler: _TablesService_ListRows_Handler, |
| 525 |
}, |
| 526 |
{ |
| 527 |
MethodName: "CreateRow", |
| 528 |
Handler: _TablesService_CreateRow_Handler, |
| 529 |
}, |
| 530 |
{ |
| 531 |
MethodName: "BatchCreateRows", |
| 532 |
Handler: _TablesService_BatchCreateRows_Handler, |
| 533 |
}, |
| 534 |
{ |
| 535 |
MethodName: "UpdateRow", |
| 536 |
Handler: _TablesService_UpdateRow_Handler, |
| 537 |
}, |
| 538 |
{ |
| 539 |
MethodName: "BatchUpdateRows", |
| 540 |
Handler: _TablesService_BatchUpdateRows_Handler, |
| 541 |
}, |
| 542 |
{ |
| 543 |
MethodName: "DeleteRow", |
| 544 |
Handler: _TablesService_DeleteRow_Handler, |
| 545 |
}, |
| 546 |
{ |
| 547 |
MethodName: "BatchDeleteRows", |
| 548 |
Handler: _TablesService_BatchDeleteRows_Handler, |
| 549 |
}, |
| 550 |
}, |
| 551 |
Streams: []grpc.StreamDesc{}, |
| 552 |
Metadata: "google/area120/tables/v1alpha1/tables.proto", |
| 553 |
} |