Debian Codegraph @

aiplatform/apiv1beta1/aiplatformpb/index_endpoint_service_grpc.pb.go

raw symbols SCIP
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/v1beta1/index_endpoint_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 IndexEndpointService_CreateIndexEndpoint_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/CreateIndexEndpoint"
38 IndexEndpointService_GetIndexEndpoint_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/GetIndexEndpoint"
39 IndexEndpointService_ListIndexEndpoints_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/ListIndexEndpoints"
40 IndexEndpointService_UpdateIndexEndpoint_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/UpdateIndexEndpoint"
41 IndexEndpointService_DeleteIndexEndpoint_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/DeleteIndexEndpoint"
42 IndexEndpointService_DeployIndex_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/DeployIndex"
43 IndexEndpointService_UndeployIndex_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/UndeployIndex"
44 IndexEndpointService_MutateDeployedIndex_FullMethodName = "/google.cloud.aiplatform.v1beta1.IndexEndpointService/MutateDeployedIndex"
45 )
46
47 // IndexEndpointServiceClient is the client API for IndexEndpointService service.
48 //
49 // 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.
50 type IndexEndpointServiceClient interface {
51 // Creates an IndexEndpoint.
52 CreateIndexEndpoint(ctx context.Context, in *CreateIndexEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
53 // Gets an IndexEndpoint.
54 GetIndexEndpoint(ctx context.Context, in *GetIndexEndpointRequest, opts ...grpc.CallOption) (*IndexEndpoint, error)
55 // Lists IndexEndpoints in a Location.
56 ListIndexEndpoints(ctx context.Context, in *ListIndexEndpointsRequest, opts ...grpc.CallOption) (*ListIndexEndpointsResponse, error)
57 // Updates an IndexEndpoint.
58 UpdateIndexEndpoint(ctx context.Context, in *UpdateIndexEndpointRequest, opts ...grpc.CallOption) (*IndexEndpoint, error)
59 // Deletes an IndexEndpoint.
60 DeleteIndexEndpoint(ctx context.Context, in *DeleteIndexEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
61 // Deploys an Index into this IndexEndpoint, creating a DeployedIndex within
62 // it.
63 // Only non-empty Indexes can be deployed.
64 DeployIndex(ctx context.Context, in *DeployIndexRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
65 // Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it,
66 // and freeing all resources it's using.
67 UndeployIndex(ctx context.Context, in *UndeployIndexRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
68 // Update an existing DeployedIndex under an IndexEndpoint.
69 MutateDeployedIndex(ctx context.Context, in *MutateDeployedIndexRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
70 }
71
72 type indexEndpointServiceClient struct {
73 cc grpc.ClientConnInterface
74 }
75
76 func NewIndexEndpointServiceClient(cc grpc.ClientConnInterface) IndexEndpointServiceClient {
77 return &indexEndpointServiceClient{cc}
78 }
79
80 func (c *indexEndpointServiceClient) CreateIndexEndpoint(ctx context.Context, in *CreateIndexEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
81 out := new(longrunningpb.Operation)
82 err := c.cc.Invoke(ctx, IndexEndpointService_CreateIndexEndpoint_FullMethodName, in, out, opts...)
83 if err != nil {
84 return nil, err
85 }
86 return out, nil
87 }
88
89 func (c *indexEndpointServiceClient) GetIndexEndpoint(ctx context.Context, in *GetIndexEndpointRequest, opts ...grpc.CallOption) (*IndexEndpoint, error) {
90 out := new(IndexEndpoint)
91 err := c.cc.Invoke(ctx, IndexEndpointService_GetIndexEndpoint_FullMethodName, in, out, opts...)
92 if err != nil {
93 return nil, err
94 }
95 return out, nil
96 }
97
98 func (c *indexEndpointServiceClient) ListIndexEndpoints(ctx context.Context, in *ListIndexEndpointsRequest, opts ...grpc.CallOption) (*ListIndexEndpointsResponse, error) {
99 out := new(ListIndexEndpointsResponse)
100 err := c.cc.Invoke(ctx, IndexEndpointService_ListIndexEndpoints_FullMethodName, in, out, opts...)
101 if err != nil {
102 return nil, err
103 }
104 return out, nil
105 }
106
107 func (c *indexEndpointServiceClient) UpdateIndexEndpoint(ctx context.Context, in *UpdateIndexEndpointRequest, opts ...grpc.CallOption) (*IndexEndpoint, error) {
108 out := new(IndexEndpoint)
109 err := c.cc.Invoke(ctx, IndexEndpointService_UpdateIndexEndpoint_FullMethodName, in, out, opts...)
110 if err != nil {
111 return nil, err
112 }
113 return out, nil
114 }
115
116 func (c *indexEndpointServiceClient) DeleteIndexEndpoint(ctx context.Context, in *DeleteIndexEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
117 out := new(longrunningpb.Operation)
118 err := c.cc.Invoke(ctx, IndexEndpointService_DeleteIndexEndpoint_FullMethodName, in, out, opts...)
119 if err != nil {
120 return nil, err
121 }
122 return out, nil
123 }
124
125 func (c *indexEndpointServiceClient) DeployIndex(ctx context.Context, in *DeployIndexRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
126 out := new(longrunningpb.Operation)
127 err := c.cc.Invoke(ctx, IndexEndpointService_DeployIndex_FullMethodName, in, out, opts...)
128 if err != nil {
129 return nil, err
130 }
131 return out, nil
132 }
133
134 func (c *indexEndpointServiceClient) UndeployIndex(ctx context.Context, in *UndeployIndexRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
135 out := new(longrunningpb.Operation)
136 err := c.cc.Invoke(ctx, IndexEndpointService_UndeployIndex_FullMethodName, in, out, opts...)
137 if err != nil {
138 return nil, err
139 }
140 return out, nil
141 }
142
143 func (c *indexEndpointServiceClient) MutateDeployedIndex(ctx context.Context, in *MutateDeployedIndexRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
144 out := new(longrunningpb.Operation)
145 err := c.cc.Invoke(ctx, IndexEndpointService_MutateDeployedIndex_FullMethodName, in, out, opts...)
146 if err != nil {
147 return nil, err
148 }
149 return out, nil
150 }
151
152 // IndexEndpointServiceServer is the server API for IndexEndpointService service.
153 // All implementations should embed UnimplementedIndexEndpointServiceServer
154 // for forward compatibility
155 type IndexEndpointServiceServer interface {
156 // Creates an IndexEndpoint.
157 CreateIndexEndpoint(context.Context, *CreateIndexEndpointRequest) (*longrunningpb.Operation, error)
158 // Gets an IndexEndpoint.
159 GetIndexEndpoint(context.Context, *GetIndexEndpointRequest) (*IndexEndpoint, error)
160 // Lists IndexEndpoints in a Location.
161 ListIndexEndpoints(context.Context, *ListIndexEndpointsRequest) (*ListIndexEndpointsResponse, error)
162 // Updates an IndexEndpoint.
163 UpdateIndexEndpoint(context.Context, *UpdateIndexEndpointRequest) (*IndexEndpoint, error)
164 // Deletes an IndexEndpoint.
165 DeleteIndexEndpoint(context.Context, *DeleteIndexEndpointRequest) (*longrunningpb.Operation, error)
166 // Deploys an Index into this IndexEndpoint, creating a DeployedIndex within
167 // it.
168 // Only non-empty Indexes can be deployed.
169 DeployIndex(context.Context, *DeployIndexRequest) (*longrunningpb.Operation, error)
170 // Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it,
171 // and freeing all resources it's using.
172 UndeployIndex(context.Context, *UndeployIndexRequest) (*longrunningpb.Operation, error)
173 // Update an existing DeployedIndex under an IndexEndpoint.
174 MutateDeployedIndex(context.Context, *MutateDeployedIndexRequest) (*longrunningpb.Operation, error)
175 }
176
177 // UnimplementedIndexEndpointServiceServer should be embedded to have forward compatible implementations.
178 type UnimplementedIndexEndpointServiceServer struct {
179 }
180
181 func (UnimplementedIndexEndpointServiceServer) CreateIndexEndpoint(context.Context, *CreateIndexEndpointRequest) (*longrunningpb.Operation, error) {
182 return nil, status.Errorf(codes.Unimplemented, "method CreateIndexEndpoint not implemented")
183 }
184 func (UnimplementedIndexEndpointServiceServer) GetIndexEndpoint(context.Context, *GetIndexEndpointRequest) (*IndexEndpoint, error) {
185 return nil, status.Errorf(codes.Unimplemented, "method GetIndexEndpoint not implemented")
186 }
187 func (UnimplementedIndexEndpointServiceServer) ListIndexEndpoints(context.Context, *ListIndexEndpointsRequest) (*ListIndexEndpointsResponse, error) {
188 return nil, status.Errorf(codes.Unimplemented, "method ListIndexEndpoints not implemented")
189 }
190 func (UnimplementedIndexEndpointServiceServer) UpdateIndexEndpoint(context.Context, *UpdateIndexEndpointRequest) (*IndexEndpoint, error) {
191 return nil, status.Errorf(codes.Unimplemented, "method UpdateIndexEndpoint not implemented")
192 }
193 func (UnimplementedIndexEndpointServiceServer) DeleteIndexEndpoint(context.Context, *DeleteIndexEndpointRequest) (*longrunningpb.Operation, error) {
194 return nil, status.Errorf(codes.Unimplemented, "method DeleteIndexEndpoint not implemented")
195 }
196 func (UnimplementedIndexEndpointServiceServer) DeployIndex(context.Context, *DeployIndexRequest) (*longrunningpb.Operation, error) {
197 return nil, status.Errorf(codes.Unimplemented, "method DeployIndex not implemented")
198 }
199 func (UnimplementedIndexEndpointServiceServer) UndeployIndex(context.Context, *UndeployIndexRequest) (*longrunningpb.Operation, error) {
200 return nil, status.Errorf(codes.Unimplemented, "method UndeployIndex not implemented")
201 }
202 func (UnimplementedIndexEndpointServiceServer) MutateDeployedIndex(context.Context, *MutateDeployedIndexRequest) (*longrunningpb.Operation, error) {
203 return nil, status.Errorf(codes.Unimplemented, "method MutateDeployedIndex not implemented")
204 }
205
206 // UnsafeIndexEndpointServiceServer may be embedded to opt out of forward compatibility for this service.
207 // Use of this interface is not recommended, as added methods to IndexEndpointServiceServer will
208 // result in compilation errors.
209 type UnsafeIndexEndpointServiceServer interface {
210 mustEmbedUnimplementedIndexEndpointServiceServer()
211 }
212
213 func RegisterIndexEndpointServiceServer(s grpc.ServiceRegistrar, srv IndexEndpointServiceServer) {
214 s.RegisterService(&IndexEndpointService_ServiceDesc, srv)
215 }
216
217 func _IndexEndpointService_CreateIndexEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
218 in := new(CreateIndexEndpointRequest)
219 if err := dec(in); err != nil {
220 return nil, err
221 }
222 if interceptor == nil {
223 return srv.(IndexEndpointServiceServer).CreateIndexEndpoint(ctx, in)
224 }
225 info := &grpc.UnaryServerInfo{
226 Server: srv,
227 FullMethod: IndexEndpointService_CreateIndexEndpoint_FullMethodName,
228 }
229 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
230 return srv.(IndexEndpointServiceServer).CreateIndexEndpoint(ctx, req.(*CreateIndexEndpointRequest))
231 }
232 return interceptor(ctx, in, info, handler)
233 }
234
235 func _IndexEndpointService_GetIndexEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
236 in := new(GetIndexEndpointRequest)
237 if err := dec(in); err != nil {
238 return nil, err
239 }
240 if interceptor == nil {
241 return srv.(IndexEndpointServiceServer).GetIndexEndpoint(ctx, in)
242 }
243 info := &grpc.UnaryServerInfo{
244 Server: srv,
245 FullMethod: IndexEndpointService_GetIndexEndpoint_FullMethodName,
246 }
247 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
248 return srv.(IndexEndpointServiceServer).GetIndexEndpoint(ctx, req.(*GetIndexEndpointRequest))
249 }
250 return interceptor(ctx, in, info, handler)
251 }
252
253 func _IndexEndpointService_ListIndexEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
254 in := new(ListIndexEndpointsRequest)
255 if err := dec(in); err != nil {
256 return nil, err
257 }
258 if interceptor == nil {
259 return srv.(IndexEndpointServiceServer).ListIndexEndpoints(ctx, in)
260 }
261 info := &grpc.UnaryServerInfo{
262 Server: srv,
263 FullMethod: IndexEndpointService_ListIndexEndpoints_FullMethodName,
264 }
265 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
266 return srv.(IndexEndpointServiceServer).ListIndexEndpoints(ctx, req.(*ListIndexEndpointsRequest))
267 }
268 return interceptor(ctx, in, info, handler)
269 }
270
271 func _IndexEndpointService_UpdateIndexEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
272 in := new(UpdateIndexEndpointRequest)
273 if err := dec(in); err != nil {
274 return nil, err
275 }
276 if interceptor == nil {
277 return srv.(IndexEndpointServiceServer).UpdateIndexEndpoint(ctx, in)
278 }
279 info := &grpc.UnaryServerInfo{
280 Server: srv,
281 FullMethod: IndexEndpointService_UpdateIndexEndpoint_FullMethodName,
282 }
283 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
284 return srv.(IndexEndpointServiceServer).UpdateIndexEndpoint(ctx, req.(*UpdateIndexEndpointRequest))
285 }
286 return interceptor(ctx, in, info, handler)
287 }
288
289 func _IndexEndpointService_DeleteIndexEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
290 in := new(DeleteIndexEndpointRequest)
291 if err := dec(in); err != nil {
292 return nil, err
293 }
294 if interceptor == nil {
295 return srv.(IndexEndpointServiceServer).DeleteIndexEndpoint(ctx, in)
296 }
297 info := &grpc.UnaryServerInfo{
298 Server: srv,
299 FullMethod: IndexEndpointService_DeleteIndexEndpoint_FullMethodName,
300 }
301 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
302 return srv.(IndexEndpointServiceServer).DeleteIndexEndpoint(ctx, req.(*DeleteIndexEndpointRequest))
303 }
304 return interceptor(ctx, in, info, handler)
305 }
306
307 func _IndexEndpointService_DeployIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
308 in := new(DeployIndexRequest)
309 if err := dec(in); err != nil {
310 return nil, err
311 }
312 if interceptor == nil {
313 return srv.(IndexEndpointServiceServer).DeployIndex(ctx, in)
314 }
315 info := &grpc.UnaryServerInfo{
316 Server: srv,
317 FullMethod: IndexEndpointService_DeployIndex_FullMethodName,
318 }
319 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
320 return srv.(IndexEndpointServiceServer).DeployIndex(ctx, req.(*DeployIndexRequest))
321 }
322 return interceptor(ctx, in, info, handler)
323 }
324
325 func _IndexEndpointService_UndeployIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
326 in := new(UndeployIndexRequest)
327 if err := dec(in); err != nil {
328 return nil, err
329 }
330 if interceptor == nil {
331 return srv.(IndexEndpointServiceServer).UndeployIndex(ctx, in)
332 }
333 info := &grpc.UnaryServerInfo{
334 Server: srv,
335 FullMethod: IndexEndpointService_UndeployIndex_FullMethodName,
336 }
337 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
338 return srv.(IndexEndpointServiceServer).UndeployIndex(ctx, req.(*UndeployIndexRequest))
339 }
340 return interceptor(ctx, in, info, handler)
341 }
342
343 func _IndexEndpointService_MutateDeployedIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
344 in := new(MutateDeployedIndexRequest)
345 if err := dec(in); err != nil {
346 return nil, err
347 }
348 if interceptor == nil {
349 return srv.(IndexEndpointServiceServer).MutateDeployedIndex(ctx, in)
350 }
351 info := &grpc.UnaryServerInfo{
352 Server: srv,
353 FullMethod: IndexEndpointService_MutateDeployedIndex_FullMethodName,
354 }
355 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
356 return srv.(IndexEndpointServiceServer).MutateDeployedIndex(ctx, req.(*MutateDeployedIndexRequest))
357 }
358 return interceptor(ctx, in, info, handler)
359 }
360
361 // IndexEndpointService_ServiceDesc is the grpc.ServiceDesc for IndexEndpointService service.
362 // It's only intended for direct use with grpc.RegisterService,
363 // and not to be introspected or modified (even as a copy)
364 var IndexEndpointService_ServiceDesc = grpc.ServiceDesc{
365 ServiceName: "google.cloud.aiplatform.v1beta1.IndexEndpointService",
366 HandlerType: (*IndexEndpointServiceServer)(nil),
367 Methods: []grpc.MethodDesc{
368 {
369 MethodName: "CreateIndexEndpoint",
370 Handler: _IndexEndpointService_CreateIndexEndpoint_Handler,
371 },
372 {
373 MethodName: "GetIndexEndpoint",
374 Handler: _IndexEndpointService_GetIndexEndpoint_Handler,
375 },
376 {
377 MethodName: "ListIndexEndpoints",
378 Handler: _IndexEndpointService_ListIndexEndpoints_Handler,
379 },
380 {
381 MethodName: "UpdateIndexEndpoint",
382 Handler: _IndexEndpointService_UpdateIndexEndpoint_Handler,
383 },
384 {
385 MethodName: "DeleteIndexEndpoint",
386 Handler: _IndexEndpointService_DeleteIndexEndpoint_Handler,
387 },
388 {
389 MethodName: "DeployIndex",
390 Handler: _IndexEndpointService_DeployIndex_Handler,
391 },
392 {
393 MethodName: "UndeployIndex",
394 Handler: _IndexEndpointService_UndeployIndex_Handler,
395 },
396 {
397 MethodName: "MutateDeployedIndex",
398 Handler: _IndexEndpointService_MutateDeployedIndex_Handler,
399 },
400 },
401 Streams: []grpc.StreamDesc{},
402 Metadata: "google/cloud/aiplatform/v1beta1/index_endpoint_service.proto",
403 }