cloud.google.com/go/aiplatform@v1.106.0/apiv1/aiplatformpb/notebook_service_grpc.pb.go (about) 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/cloud/aiplatform/v1/notebook_service.proto 20 21 package aiplatformpb 22 23 import ( 24 longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" 25 context "context" 26 grpc "google.golang.org/grpc" 27 codes "google.golang.org/grpc/codes" 28 status "google.golang.org/grpc/status" 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 NotebookService_CreateNotebookRuntimeTemplate_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/CreateNotebookRuntimeTemplate" 38 NotebookService_GetNotebookRuntimeTemplate_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/GetNotebookRuntimeTemplate" 39 NotebookService_ListNotebookRuntimeTemplates_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/ListNotebookRuntimeTemplates" 40 NotebookService_DeleteNotebookRuntimeTemplate_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/DeleteNotebookRuntimeTemplate" 41 NotebookService_UpdateNotebookRuntimeTemplate_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/UpdateNotebookRuntimeTemplate" 42 NotebookService_AssignNotebookRuntime_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/AssignNotebookRuntime" 43 NotebookService_GetNotebookRuntime_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/GetNotebookRuntime" 44 NotebookService_ListNotebookRuntimes_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/ListNotebookRuntimes" 45 NotebookService_DeleteNotebookRuntime_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/DeleteNotebookRuntime" 46 NotebookService_UpgradeNotebookRuntime_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/UpgradeNotebookRuntime" 47 NotebookService_StartNotebookRuntime_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/StartNotebookRuntime" 48 NotebookService_StopNotebookRuntime_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/StopNotebookRuntime" 49 NotebookService_CreateNotebookExecutionJob_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/CreateNotebookExecutionJob" 50 NotebookService_GetNotebookExecutionJob_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/GetNotebookExecutionJob" 51 NotebookService_ListNotebookExecutionJobs_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/ListNotebookExecutionJobs" 52 NotebookService_DeleteNotebookExecutionJob_FullMethodName = "/google.cloud.aiplatform.v1.NotebookService/DeleteNotebookExecutionJob" 53 ) 54 55 // NotebookServiceClient is the client API for NotebookService service. 56 // 57 // 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. 58 type NotebookServiceClient interface { 59 // Creates a NotebookRuntimeTemplate. 60 CreateNotebookRuntimeTemplate(ctx context.Context, in *CreateNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 61 // Gets a NotebookRuntimeTemplate. 62 GetNotebookRuntimeTemplate(ctx context.Context, in *GetNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*NotebookRuntimeTemplate, error) 63 // Lists NotebookRuntimeTemplates in a Location. 64 ListNotebookRuntimeTemplates(ctx context.Context, in *ListNotebookRuntimeTemplatesRequest, opts ...grpc.CallOption) (*ListNotebookRuntimeTemplatesResponse, error) 65 // Deletes a NotebookRuntimeTemplate. 66 DeleteNotebookRuntimeTemplate(ctx context.Context, in *DeleteNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 67 // Updates a NotebookRuntimeTemplate. 68 UpdateNotebookRuntimeTemplate(ctx context.Context, in *UpdateNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*NotebookRuntimeTemplate, error) 69 // Assigns a NotebookRuntime to a user for a particular Notebook file. This 70 // method will either returns an existing assignment or generates a new one. 71 AssignNotebookRuntime(ctx context.Context, in *AssignNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 72 // Gets a NotebookRuntime. 73 GetNotebookRuntime(ctx context.Context, in *GetNotebookRuntimeRequest, opts ...grpc.CallOption) (*NotebookRuntime, error) 74 // Lists NotebookRuntimes in a Location. 75 ListNotebookRuntimes(ctx context.Context, in *ListNotebookRuntimesRequest, opts ...grpc.CallOption) (*ListNotebookRuntimesResponse, error) 76 // Deletes a NotebookRuntime. 77 DeleteNotebookRuntime(ctx context.Context, in *DeleteNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 78 // Upgrades a NotebookRuntime. 79 UpgradeNotebookRuntime(ctx context.Context, in *UpgradeNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 80 // Starts a NotebookRuntime. 81 StartNotebookRuntime(ctx context.Context, in *StartNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 82 // Stops a NotebookRuntime. 83 StopNotebookRuntime(ctx context.Context, in *StopNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 84 // Creates a NotebookExecutionJob. 85 CreateNotebookExecutionJob(ctx context.Context, in *CreateNotebookExecutionJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 86 // Gets a NotebookExecutionJob. 87 GetNotebookExecutionJob(ctx context.Context, in *GetNotebookExecutionJobRequest, opts ...grpc.CallOption) (*NotebookExecutionJob, error) 88 // Lists NotebookExecutionJobs in a Location. 89 ListNotebookExecutionJobs(ctx context.Context, in *ListNotebookExecutionJobsRequest, opts ...grpc.CallOption) (*ListNotebookExecutionJobsResponse, error) 90 // Deletes a NotebookExecutionJob. 91 DeleteNotebookExecutionJob(ctx context.Context, in *DeleteNotebookExecutionJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 92 } 93 94 type notebookServiceClient struct { 95 cc grpc.ClientConnInterface 96 } 97 98 func NewNotebookServiceClient(cc grpc.ClientConnInterface) NotebookServiceClient { 99 return ¬ebookServiceClient{cc} 100 } 101 102 func (c *notebookServiceClient) CreateNotebookRuntimeTemplate(ctx context.Context, in *CreateNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 103 out := new(longrunningpb.Operation) 104 err := c.cc.Invoke(ctx, NotebookService_CreateNotebookRuntimeTemplate_FullMethodName, in, out, opts...) 105 if err != nil { 106 return nil, err 107 } 108 return out, nil 109 } 110 111 func (c *notebookServiceClient) GetNotebookRuntimeTemplate(ctx context.Context, in *GetNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*NotebookRuntimeTemplate, error) { 112 out := new(NotebookRuntimeTemplate) 113 err := c.cc.Invoke(ctx, NotebookService_GetNotebookRuntimeTemplate_FullMethodName, in, out, opts...) 114 if err != nil { 115 return nil, err 116 } 117 return out, nil 118 } 119 120 func (c *notebookServiceClient) ListNotebookRuntimeTemplates(ctx context.Context, in *ListNotebookRuntimeTemplatesRequest, opts ...grpc.CallOption) (*ListNotebookRuntimeTemplatesResponse, error) { 121 out := new(ListNotebookRuntimeTemplatesResponse) 122 err := c.cc.Invoke(ctx, NotebookService_ListNotebookRuntimeTemplates_FullMethodName, in, out, opts...) 123 if err != nil { 124 return nil, err 125 } 126 return out, nil 127 } 128 129 func (c *notebookServiceClient) DeleteNotebookRuntimeTemplate(ctx context.Context, in *DeleteNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 130 out := new(longrunningpb.Operation) 131 err := c.cc.Invoke(ctx, NotebookService_DeleteNotebookRuntimeTemplate_FullMethodName, in, out, opts...) 132 if err != nil { 133 return nil, err 134 } 135 return out, nil 136 } 137 138 func (c *notebookServiceClient) UpdateNotebookRuntimeTemplate(ctx context.Context, in *UpdateNotebookRuntimeTemplateRequest, opts ...grpc.CallOption) (*NotebookRuntimeTemplate, error) { 139 out := new(NotebookRuntimeTemplate) 140 err := c.cc.Invoke(ctx, NotebookService_UpdateNotebookRuntimeTemplate_FullMethodName, in, out, opts...) 141 if err != nil { 142 return nil, err 143 } 144 return out, nil 145 } 146 147 func (c *notebookServiceClient) AssignNotebookRuntime(ctx context.Context, in *AssignNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 148 out := new(longrunningpb.Operation) 149 err := c.cc.Invoke(ctx, NotebookService_AssignNotebookRuntime_FullMethodName, in, out, opts...) 150 if err != nil { 151 return nil, err 152 } 153 return out, nil 154 } 155 156 func (c *notebookServiceClient) GetNotebookRuntime(ctx context.Context, in *GetNotebookRuntimeRequest, opts ...grpc.CallOption) (*NotebookRuntime, error) { 157 out := new(NotebookRuntime) 158 err := c.cc.Invoke(ctx, NotebookService_GetNotebookRuntime_FullMethodName, in, out, opts...) 159 if err != nil { 160 return nil, err 161 } 162 return out, nil 163 } 164 165 func (c *notebookServiceClient) ListNotebookRuntimes(ctx context.Context, in *ListNotebookRuntimesRequest, opts ...grpc.CallOption) (*ListNotebookRuntimesResponse, error) { 166 out := new(ListNotebookRuntimesResponse) 167 err := c.cc.Invoke(ctx, NotebookService_ListNotebookRuntimes_FullMethodName, in, out, opts...) 168 if err != nil { 169 return nil, err 170 } 171 return out, nil 172 } 173 174 func (c *notebookServiceClient) DeleteNotebookRuntime(ctx context.Context, in *DeleteNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 175 out := new(longrunningpb.Operation) 176 err := c.cc.Invoke(ctx, NotebookService_DeleteNotebookRuntime_FullMethodName, in, out, opts...) 177 if err != nil { 178 return nil, err 179 } 180 return out, nil 181 } 182 183 func (c *notebookServiceClient) UpgradeNotebookRuntime(ctx context.Context, in *UpgradeNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 184 out := new(longrunningpb.Operation) 185 err := c.cc.Invoke(ctx, NotebookService_UpgradeNotebookRuntime_FullMethodName, in, out, opts...) 186 if err != nil { 187 return nil, err 188 } 189 return out, nil 190 } 191 192 func (c *notebookServiceClient) StartNotebookRuntime(ctx context.Context, in *StartNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 193 out := new(longrunningpb.Operation) 194 err := c.cc.Invoke(ctx, NotebookService_StartNotebookRuntime_FullMethodName, in, out, opts...) 195 if err != nil { 196 return nil, err 197 } 198 return out, nil 199 } 200 201 func (c *notebookServiceClient) StopNotebookRuntime(ctx context.Context, in *StopNotebookRuntimeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 202 out := new(longrunningpb.Operation) 203 err := c.cc.Invoke(ctx, NotebookService_StopNotebookRuntime_FullMethodName, in, out, opts...) 204 if err != nil { 205 return nil, err 206 } 207 return out, nil 208 } 209 210 func (c *notebookServiceClient) CreateNotebookExecutionJob(ctx context.Context, in *CreateNotebookExecutionJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 211 out := new(longrunningpb.Operation) 212 err := c.cc.Invoke(ctx, NotebookService_CreateNotebookExecutionJob_FullMethodName, in, out, opts...) 213 if err != nil { 214 return nil, err 215 } 216 return out, nil 217 } 218 219 func (c *notebookServiceClient) GetNotebookExecutionJob(ctx context.Context, in *GetNotebookExecutionJobRequest, opts ...grpc.CallOption) (*NotebookExecutionJob, error) { 220 out := new(NotebookExecutionJob) 221 err := c.cc.Invoke(ctx, NotebookService_GetNotebookExecutionJob_FullMethodName, in, out, opts...) 222 if err != nil { 223 return nil, err 224 } 225 return out, nil 226 } 227 228 func (c *notebookServiceClient) ListNotebookExecutionJobs(ctx context.Context, in *ListNotebookExecutionJobsRequest, opts ...grpc.CallOption) (*ListNotebookExecutionJobsResponse, error) { 229 out := new(ListNotebookExecutionJobsResponse) 230 err := c.cc.Invoke(ctx, NotebookService_ListNotebookExecutionJobs_FullMethodName, in, out, opts...) 231 if err != nil { 232 return nil, err 233 } 234 return out, nil 235 } 236 237 func (c *notebookServiceClient) DeleteNotebookExecutionJob(ctx context.Context, in *DeleteNotebookExecutionJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 238 out := new(longrunningpb.Operation) 239 err := c.cc.Invoke(ctx, NotebookService_DeleteNotebookExecutionJob_FullMethodName, in, out, opts...) 240 if err != nil { 241 return nil, err 242 } 243 return out, nil 244 } 245 246 // NotebookServiceServer is the server API for NotebookService service. 247 // All implementations should embed UnimplementedNotebookServiceServer 248 // for forward compatibility 249 type NotebookServiceServer interface { 250 // Creates a NotebookRuntimeTemplate. 251 CreateNotebookRuntimeTemplate(context.Context, *CreateNotebookRuntimeTemplateRequest) (*longrunningpb.Operation, error) 252 // Gets a NotebookRuntimeTemplate. 253 GetNotebookRuntimeTemplate(context.Context, *GetNotebookRuntimeTemplateRequest) (*NotebookRuntimeTemplate, error) 254 // Lists NotebookRuntimeTemplates in a Location. 255 ListNotebookRuntimeTemplates(context.Context, *ListNotebookRuntimeTemplatesRequest) (*ListNotebookRuntimeTemplatesResponse, error) 256 // Deletes a NotebookRuntimeTemplate. 257 DeleteNotebookRuntimeTemplate(context.Context, *DeleteNotebookRuntimeTemplateRequest) (*longrunningpb.Operation, error) 258 // Updates a NotebookRuntimeTemplate. 259 UpdateNotebookRuntimeTemplate(context.Context, *UpdateNotebookRuntimeTemplateRequest) (*NotebookRuntimeTemplate, error) 260 // Assigns a NotebookRuntime to a user for a particular Notebook file. This 261 // method will either returns an existing assignment or generates a new one. 262 AssignNotebookRuntime(context.Context, *AssignNotebookRuntimeRequest) (*longrunningpb.Operation, error) 263 // Gets a NotebookRuntime. 264 GetNotebookRuntime(context.Context, *GetNotebookRuntimeRequest) (*NotebookRuntime, error) 265 // Lists NotebookRuntimes in a Location. 266 ListNotebookRuntimes(context.Context, *ListNotebookRuntimesRequest) (*ListNotebookRuntimesResponse, error) 267 // Deletes a NotebookRuntime. 268 DeleteNotebookRuntime(context.Context, *DeleteNotebookRuntimeRequest) (*longrunningpb.Operation, error) 269 // Upgrades a NotebookRuntime. 270 UpgradeNotebookRuntime(context.Context, *UpgradeNotebookRuntimeRequest) (*longrunningpb.Operation, error) 271 // Starts a NotebookRuntime. 272 StartNotebookRuntime(context.Context, *StartNotebookRuntimeRequest) (*longrunningpb.Operation, error) 273 // Stops a NotebookRuntime. 274 StopNotebookRuntime(context.Context, *StopNotebookRuntimeRequest) (*longrunningpb.Operation, error) 275 // Creates a NotebookExecutionJob. 276 CreateNotebookExecutionJob(context.Context, *CreateNotebookExecutionJobRequest) (*longrunningpb.Operation, error) 277 // Gets a NotebookExecutionJob. 278 GetNotebookExecutionJob(context.Context, *GetNotebookExecutionJobRequest) (*NotebookExecutionJob, error) 279 // Lists NotebookExecutionJobs in a Location. 280 ListNotebookExecutionJobs(context.Context, *ListNotebookExecutionJobsRequest) (*ListNotebookExecutionJobsResponse, error) 281 // Deletes a NotebookExecutionJob. 282 DeleteNotebookExecutionJob(context.Context, *DeleteNotebookExecutionJobRequest) (*longrunningpb.Operation, error) 283 } 284 285 // UnimplementedNotebookServiceServer should be embedded to have forward compatible implementations. 286 type UnimplementedNotebookServiceServer struct { 287 } 288 289 func (UnimplementedNotebookServiceServer) CreateNotebookRuntimeTemplate(context.Context, *CreateNotebookRuntimeTemplateRequest) (*longrunningpb.Operation, error) { 290 return nil, status.Errorf(codes.Unimplemented, "method CreateNotebookRuntimeTemplate not implemented") 291 } 292 func (UnimplementedNotebookServiceServer) GetNotebookRuntimeTemplate(context.Context, *GetNotebookRuntimeTemplateRequest) (*NotebookRuntimeTemplate, error) { 293 return nil, status.Errorf(codes.Unimplemented, "method GetNotebookRuntimeTemplate not implemented") 294 } 295 func (UnimplementedNotebookServiceServer) ListNotebookRuntimeTemplates(context.Context, *ListNotebookRuntimeTemplatesRequest) (*ListNotebookRuntimeTemplatesResponse, error) { 296 return nil, status.Errorf(codes.Unimplemented, "method ListNotebookRuntimeTemplates not implemented") 297 } 298 func (UnimplementedNotebookServiceServer) DeleteNotebookRuntimeTemplate(context.Context, *DeleteNotebookRuntimeTemplateRequest) (*longrunningpb.Operation, error) { 299 return nil, status.Errorf(codes.Unimplemented, "method DeleteNotebookRuntimeTemplate not implemented") 300 } 301 func (UnimplementedNotebookServiceServer) UpdateNotebookRuntimeTemplate(context.Context, *UpdateNotebookRuntimeTemplateRequest) (*NotebookRuntimeTemplate, error) { 302 return nil, status.Errorf(codes.Unimplemented, "method UpdateNotebookRuntimeTemplate not implemented") 303 } 304 func (UnimplementedNotebookServiceServer) AssignNotebookRuntime(context.Context, *AssignNotebookRuntimeRequest) (*longrunningpb.Operation, error) { 305 return nil, status.Errorf(codes.Unimplemented, "method AssignNotebookRuntime not implemented") 306 } 307 func (UnimplementedNotebookServiceServer) GetNotebookRuntime(context.Context, *GetNotebookRuntimeRequest) (*NotebookRuntime, error) { 308 return nil, status.Errorf(codes.Unimplemented, "method GetNotebookRuntime not implemented") 309 } 310 func (UnimplementedNotebookServiceServer) ListNotebookRuntimes(context.Context, *ListNotebookRuntimesRequest) (*ListNotebookRuntimesResponse, error) { 311 return nil, status.Errorf(codes.Unimplemented, "method ListNotebookRuntimes not implemented") 312 } 313 func (UnimplementedNotebookServiceServer) DeleteNotebookRuntime(context.Context, *DeleteNotebookRuntimeRequest) (*longrunningpb.Operation, error) { 314 return nil, status.Errorf(codes.Unimplemented, "method DeleteNotebookRuntime not implemented") 315 } 316 func (UnimplementedNotebookServiceServer) UpgradeNotebookRuntime(context.Context, *UpgradeNotebookRuntimeRequest) (*longrunningpb.Operation, error) { 317 return nil, status.Errorf(codes.Unimplemented, "method UpgradeNotebookRuntime not implemented") 318 } 319 func (UnimplementedNotebookServiceServer) StartNotebookRuntime(context.Context, *StartNotebookRuntimeRequest) (*longrunningpb.Operation, error) { 320 return nil, status.Errorf(codes.Unimplemented, "method StartNotebookRuntime not implemented") 321 } 322 func (UnimplementedNotebookServiceServer) StopNotebookRuntime(context.Context, *StopNotebookRuntimeRequest) (*longrunningpb.Operation, error) { 323 return nil, status.Errorf(codes.Unimplemented, "method StopNotebookRuntime not implemented") 324 } 325 func (UnimplementedNotebookServiceServer) CreateNotebookExecutionJob(context.Context, *CreateNotebookExecutionJobRequest) (*longrunningpb.Operation, error) { 326 return nil, status.Errorf(codes.Unimplemented, "method CreateNotebookExecutionJob not implemented") 327 } 328 func (UnimplementedNotebookServiceServer) GetNotebookExecutionJob(context.Context, *GetNotebookExecutionJobRequest) (*NotebookExecutionJob, error) { 329 return nil, status.Errorf(codes.Unimplemented, "method GetNotebookExecutionJob not implemented") 330 } 331 func (UnimplementedNotebookServiceServer) ListNotebookExecutionJobs(context.Context, *ListNotebookExecutionJobsRequest) (*ListNotebookExecutionJobsResponse, error) { 332 return nil, status.Errorf(codes.Unimplemented, "method ListNotebookExecutionJobs not implemented") 333 } 334 func (UnimplementedNotebookServiceServer) DeleteNotebookExecutionJob(context.Context, *DeleteNotebookExecutionJobRequest) (*longrunningpb.Operation, error) { 335 return nil, status.Errorf(codes.Unimplemented, "method DeleteNotebookExecutionJob not implemented") 336 } 337 338 // UnsafeNotebookServiceServer may be embedded to opt out of forward compatibility for this service. 339 // Use of this interface is not recommended, as added methods to NotebookServiceServer will 340 // result in compilation errors. 341 type UnsafeNotebookServiceServer interface { 342 mustEmbedUnimplementedNotebookServiceServer() 343 } 344 345 func RegisterNotebookServiceServer(s grpc.ServiceRegistrar, srv NotebookServiceServer) { 346 s.RegisterService(&NotebookService_ServiceDesc, srv) 347 } 348 349 func _NotebookService_CreateNotebookRuntimeTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 350 in := new(CreateNotebookRuntimeTemplateRequest) 351 if err := dec(in); err != nil { 352 return nil, err 353 } 354 if interceptor == nil { 355 return srv.(NotebookServiceServer).CreateNotebookRuntimeTemplate(ctx, in) 356 } 357 info := &grpc.UnaryServerInfo{ 358 Server: srv, 359 FullMethod: NotebookService_CreateNotebookRuntimeTemplate_FullMethodName, 360 } 361 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 362 return srv.(NotebookServiceServer).CreateNotebookRuntimeTemplate(ctx, req.(*CreateNotebookRuntimeTemplateRequest)) 363 } 364 return interceptor(ctx, in, info, handler) 365 } 366 367 func _NotebookService_GetNotebookRuntimeTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 368 in := new(GetNotebookRuntimeTemplateRequest) 369 if err := dec(in); err != nil { 370 return nil, err 371 } 372 if interceptor == nil { 373 return srv.(NotebookServiceServer).GetNotebookRuntimeTemplate(ctx, in) 374 } 375 info := &grpc.UnaryServerInfo{ 376 Server: srv, 377 FullMethod: NotebookService_GetNotebookRuntimeTemplate_FullMethodName, 378 } 379 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 380 return srv.(NotebookServiceServer).GetNotebookRuntimeTemplate(ctx, req.(*GetNotebookRuntimeTemplateRequest)) 381 } 382 return interceptor(ctx, in, info, handler) 383 } 384 385 func _NotebookService_ListNotebookRuntimeTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 386 in := new(ListNotebookRuntimeTemplatesRequest) 387 if err := dec(in); err != nil { 388 return nil, err 389 } 390 if interceptor == nil { 391 return srv.(NotebookServiceServer).ListNotebookRuntimeTemplates(ctx, in) 392 } 393 info := &grpc.UnaryServerInfo{ 394 Server: srv, 395 FullMethod: NotebookService_ListNotebookRuntimeTemplates_FullMethodName, 396 } 397 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 398 return srv.(NotebookServiceServer).ListNotebookRuntimeTemplates(ctx, req.(*ListNotebookRuntimeTemplatesRequest)) 399 } 400 return interceptor(ctx, in, info, handler) 401 } 402 403 func _NotebookService_DeleteNotebookRuntimeTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 404 in := new(DeleteNotebookRuntimeTemplateRequest) 405 if err := dec(in); err != nil { 406 return nil, err 407 } 408 if interceptor == nil { 409 return srv.(NotebookServiceServer).DeleteNotebookRuntimeTemplate(ctx, in) 410 } 411 info := &grpc.UnaryServerInfo{ 412 Server: srv, 413 FullMethod: NotebookService_DeleteNotebookRuntimeTemplate_FullMethodName, 414 } 415 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 416 return srv.(NotebookServiceServer).DeleteNotebookRuntimeTemplate(ctx, req.(*DeleteNotebookRuntimeTemplateRequest)) 417 } 418 return interceptor(ctx, in, info, handler) 419 } 420 421 func _NotebookService_UpdateNotebookRuntimeTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 422 in := new(UpdateNotebookRuntimeTemplateRequest) 423 if err := dec(in); err != nil { 424 return nil, err 425 } 426 if interceptor == nil { 427 return srv.(NotebookServiceServer).UpdateNotebookRuntimeTemplate(ctx, in) 428 } 429 info := &grpc.UnaryServerInfo{ 430 Server: srv, 431 FullMethod: NotebookService_UpdateNotebookRuntimeTemplate_FullMethodName, 432 } 433 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 434 return srv.(NotebookServiceServer).UpdateNotebookRuntimeTemplate(ctx, req.(*UpdateNotebookRuntimeTemplateRequest)) 435 } 436 return interceptor(ctx, in, info, handler) 437 } 438 439 func _NotebookService_AssignNotebookRuntime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 440 in := new(AssignNotebookRuntimeRequest) 441 if err := dec(in); err != nil { 442 return nil, err 443 } 444 if interceptor == nil { 445 return srv.(NotebookServiceServer).AssignNotebookRuntime(ctx, in) 446 } 447 info := &grpc.UnaryServerInfo{ 448 Server: srv, 449 FullMethod: NotebookService_AssignNotebookRuntime_FullMethodName, 450 } 451 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 452 return srv.(NotebookServiceServer).AssignNotebookRuntime(ctx, req.(*AssignNotebookRuntimeRequest)) 453 } 454 return interceptor(ctx, in, info, handler) 455 } 456 457 func _NotebookService_GetNotebookRuntime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 458 in := new(GetNotebookRuntimeRequest) 459 if err := dec(in); err != nil { 460 return nil, err 461 } 462 if interceptor == nil { 463 return srv.(NotebookServiceServer).GetNotebookRuntime(ctx, in) 464 } 465 info := &grpc.UnaryServerInfo{ 466 Server: srv, 467 FullMethod: NotebookService_GetNotebookRuntime_FullMethodName, 468 } 469 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 470 return srv.(NotebookServiceServer).GetNotebookRuntime(ctx, req.(*GetNotebookRuntimeRequest)) 471 } 472 return interceptor(ctx, in, info, handler) 473 } 474 475 func _NotebookService_ListNotebookRuntimes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 476 in := new(ListNotebookRuntimesRequest) 477 if err := dec(in); err != nil { 478 return nil, err 479 } 480 if interceptor == nil { 481 return srv.(NotebookServiceServer).ListNotebookRuntimes(ctx, in) 482 } 483 info := &grpc.UnaryServerInfo{ 484 Server: srv, 485 FullMethod: NotebookService_ListNotebookRuntimes_FullMethodName, 486 } 487 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 488 return srv.(NotebookServiceServer).ListNotebookRuntimes(ctx, req.(*ListNotebookRuntimesRequest)) 489 } 490 return interceptor(ctx, in, info, handler) 491 } 492 493 func _NotebookService_DeleteNotebookRuntime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 494 in := new(DeleteNotebookRuntimeRequest) 495 if err := dec(in); err != nil { 496 return nil, err 497 } 498 if interceptor == nil { 499 return srv.(NotebookServiceServer).DeleteNotebookRuntime(ctx, in) 500 } 501 info := &grpc.UnaryServerInfo{ 502 Server: srv, 503 FullMethod: NotebookService_DeleteNotebookRuntime_FullMethodName, 504 } 505 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 506 return srv.(NotebookServiceServer).DeleteNotebookRuntime(ctx, req.(*DeleteNotebookRuntimeRequest)) 507 } 508 return interceptor(ctx, in, info, handler) 509 } 510 511 func _NotebookService_UpgradeNotebookRuntime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 512 in := new(UpgradeNotebookRuntimeRequest) 513 if err := dec(in); err != nil { 514 return nil, err 515 } 516 if interceptor == nil { 517 return srv.(NotebookServiceServer).UpgradeNotebookRuntime(ctx, in) 518 } 519 info := &grpc.UnaryServerInfo{ 520 Server: srv, 521 FullMethod: NotebookService_UpgradeNotebookRuntime_FullMethodName, 522 } 523 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 524 return srv.(NotebookServiceServer).UpgradeNotebookRuntime(ctx, req.(*UpgradeNotebookRuntimeRequest)) 525 } 526 return interceptor(ctx, in, info, handler) 527 } 528 529 func _NotebookService_StartNotebookRuntime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 530 in := new(StartNotebookRuntimeRequest) 531 if err := dec(in); err != nil { 532 return nil, err 533 } 534 if interceptor == nil { 535 return srv.(NotebookServiceServer).StartNotebookRuntime(ctx, in) 536 } 537 info := &grpc.UnaryServerInfo{ 538 Server: srv, 539 FullMethod: NotebookService_StartNotebookRuntime_FullMethodName, 540 } 541 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 542 return srv.(NotebookServiceServer).StartNotebookRuntime(ctx, req.(*StartNotebookRuntimeRequest)) 543 } 544 return interceptor(ctx, in, info, handler) 545 } 546 547 func _NotebookService_StopNotebookRuntime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 548 in := new(StopNotebookRuntimeRequest) 549 if err := dec(in); err != nil { 550 return nil, err 551 } 552 if interceptor == nil { 553 return srv.(NotebookServiceServer).StopNotebookRuntime(ctx, in) 554 } 555 info := &grpc.UnaryServerInfo{ 556 Server: srv, 557 FullMethod: NotebookService_StopNotebookRuntime_FullMethodName, 558 } 559 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 560 return srv.(NotebookServiceServer).StopNotebookRuntime(ctx, req.(*StopNotebookRuntimeRequest)) 561 } 562 return interceptor(ctx, in, info, handler) 563 } 564 565 func _NotebookService_CreateNotebookExecutionJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 566 in := new(CreateNotebookExecutionJobRequest) 567 if err := dec(in); err != nil { 568 return nil, err 569 } 570 if interceptor == nil { 571 return srv.(NotebookServiceServer).CreateNotebookExecutionJob(ctx, in) 572 } 573 info := &grpc.UnaryServerInfo{ 574 Server: srv, 575 FullMethod: NotebookService_CreateNotebookExecutionJob_FullMethodName, 576 } 577 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 578 return srv.(NotebookServiceServer).CreateNotebookExecutionJob(ctx, req.(*CreateNotebookExecutionJobRequest)) 579 } 580 return interceptor(ctx, in, info, handler) 581 } 582 583 func _NotebookService_GetNotebookExecutionJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 584 in := new(GetNotebookExecutionJobRequest) 585 if err := dec(in); err != nil { 586 return nil, err 587 } 588 if interceptor == nil { 589 return srv.(NotebookServiceServer).GetNotebookExecutionJob(ctx, in) 590 } 591 info := &grpc.UnaryServerInfo{ 592 Server: srv, 593 FullMethod: NotebookService_GetNotebookExecutionJob_FullMethodName, 594 } 595 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 596 return srv.(NotebookServiceServer).GetNotebookExecutionJob(ctx, req.(*GetNotebookExecutionJobRequest)) 597 } 598 return interceptor(ctx, in, info, handler) 599 } 600 601 func _NotebookService_ListNotebookExecutionJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 602 in := new(ListNotebookExecutionJobsRequest) 603 if err := dec(in); err != nil { 604 return nil, err 605 } 606 if interceptor == nil { 607 return srv.(NotebookServiceServer).ListNotebookExecutionJobs(ctx, in) 608 } 609 info := &grpc.UnaryServerInfo{ 610 Server: srv, 611 FullMethod: NotebookService_ListNotebookExecutionJobs_FullMethodName, 612 } 613 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 614 return srv.(NotebookServiceServer).ListNotebookExecutionJobs(ctx, req.(*ListNotebookExecutionJobsRequest)) 615 } 616 return interceptor(ctx, in, info, handler) 617 } 618 619 func _NotebookService_DeleteNotebookExecutionJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 620 in := new(DeleteNotebookExecutionJobRequest) 621 if err := dec(in); err != nil { 622 return nil, err 623 } 624 if interceptor == nil { 625 return srv.(NotebookServiceServer).DeleteNotebookExecutionJob(ctx, in) 626 } 627 info := &grpc.UnaryServerInfo{ 628 Server: srv, 629 FullMethod: NotebookService_DeleteNotebookExecutionJob_FullMethodName, 630 } 631 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 632 return srv.(NotebookServiceServer).DeleteNotebookExecutionJob(ctx, req.(*DeleteNotebookExecutionJobRequest)) 633 } 634 return interceptor(ctx, in, info, handler) 635 } 636 637 // NotebookService_ServiceDesc is the grpc.ServiceDesc for NotebookService service. 638 // It's only intended for direct use with grpc.RegisterService, 639 // and not to be introspected or modified (even as a copy) 640 var NotebookService_ServiceDesc = grpc.ServiceDesc{ 641 ServiceName: "google.cloud.aiplatform.v1.NotebookService", 642 HandlerType: (*NotebookServiceServer)(nil), 643 Methods: []grpc.MethodDesc{ 644 { 645 MethodName: "CreateNotebookRuntimeTemplate", 646 Handler: _NotebookService_CreateNotebookRuntimeTemplate_Handler, 647 }, 648 { 649 MethodName: "GetNotebookRuntimeTemplate", 650 Handler: _NotebookService_GetNotebookRuntimeTemplate_Handler, 651 }, 652 { 653 MethodName: "ListNotebookRuntimeTemplates", 654 Handler: _NotebookService_ListNotebookRuntimeTemplates_Handler, 655 }, 656 { 657 MethodName: "DeleteNotebookRuntimeTemplate", 658 Handler: _NotebookService_DeleteNotebookRuntimeTemplate_Handler, 659 }, 660 { 661 MethodName: "UpdateNotebookRuntimeTemplate", 662 Handler: _NotebookService_UpdateNotebookRuntimeTemplate_Handler, 663 }, 664 { 665 MethodName: "AssignNotebookRuntime", 666 Handler: _NotebookService_AssignNotebookRuntime_Handler, 667 }, 668 { 669 MethodName: "GetNotebookRuntime", 670 Handler: _NotebookService_GetNotebookRuntime_Handler, 671 }, 672 { 673 MethodName: "ListNotebookRuntimes", 674 Handler: _NotebookService_ListNotebookRuntimes_Handler, 675 }, 676 { 677 MethodName: "DeleteNotebookRuntime", 678 Handler: _NotebookService_DeleteNotebookRuntime_Handler, 679 }, 680 { 681 MethodName: "UpgradeNotebookRuntime", 682 Handler: _NotebookService_UpgradeNotebookRuntime_Handler, 683 }, 684 { 685 MethodName: "StartNotebookRuntime", 686 Handler: _NotebookService_StartNotebookRuntime_Handler, 687 }, 688 { 689 MethodName: "StopNotebookRuntime", 690 Handler: _NotebookService_StopNotebookRuntime_Handler, 691 }, 692 { 693 MethodName: "CreateNotebookExecutionJob", 694 Handler: _NotebookService_CreateNotebookExecutionJob_Handler, 695 }, 696 { 697 MethodName: "GetNotebookExecutionJob", 698 Handler: _NotebookService_GetNotebookExecutionJob_Handler, 699 }, 700 { 701 MethodName: "ListNotebookExecutionJobs", 702 Handler: _NotebookService_ListNotebookExecutionJobs_Handler, 703 }, 704 { 705 MethodName: "DeleteNotebookExecutionJob", 706 Handler: _NotebookService_DeleteNotebookExecutionJob_Handler, 707 }, 708 }, 709 Streams: []grpc.StreamDesc{}, 710 Metadata: "google/cloud/aiplatform/v1/notebook_service.proto", 711 }