| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |
|
| 32 |
|
| 33 |
|
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
MemoryBankService_CreateMemory_FullMethodName = "/google.cloud.aiplatform.v1beta1.MemoryBankService/CreateMemory" |
| 38 |
MemoryBankService_GetMemory_FullMethodName = "/google.cloud.aiplatform.v1beta1.MemoryBankService/GetMemory" |
| 39 |
MemoryBankService_UpdateMemory_FullMethodName = "/google.cloud.aiplatform.v1beta1.MemoryBankService/UpdateMemory" |
| 40 |
MemoryBankService_ListMemories_FullMethodName = "/google.cloud.aiplatform.v1beta1.MemoryBankService/ListMemories" |
| 41 |
MemoryBankService_DeleteMemory_FullMethodName = "/google.cloud.aiplatform.v1beta1.MemoryBankService/DeleteMemory" |
| 42 |
MemoryBankService_GenerateMemories_FullMethodName = "/google.cloud.aiplatform.v1beta1.MemoryBankService/GenerateMemories" |
| 43 |
MemoryBankService_RetrieveMemories_FullMethodName = "/google.cloud.aiplatform.v1beta1.MemoryBankService/RetrieveMemories" |
| 44 |
) |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
type MemoryBankServiceClient interface { |
| 50 |
|
| 51 |
CreateMemory(ctx context.Context, in *CreateMemoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 52 |
|
| 53 |
GetMemory(ctx context.Context, in *GetMemoryRequest, opts ...grpc.CallOption) (*Memory, error) |
| 54 |
|
| 55 |
UpdateMemory(ctx context.Context, in *UpdateMemoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 56 |
|
| 57 |
ListMemories(ctx context.Context, in *ListMemoriesRequest, opts ...grpc.CallOption) (*ListMemoriesResponse, error) |
| 58 |
|
| 59 |
DeleteMemory(ctx context.Context, in *DeleteMemoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 60 |
|
| 61 |
GenerateMemories(ctx context.Context, in *GenerateMemoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 62 |
|
| 63 |
RetrieveMemories(ctx context.Context, in *RetrieveMemoriesRequest, opts ...grpc.CallOption) (*RetrieveMemoriesResponse, error) |
| 64 |
} |
| 65 |
|
| 66 |
type memoryBankServiceClient struct { |
| 67 |
cc grpc.ClientConnInterface |
| 68 |
} |
| 69 |
|
| 70 |
func NewMemoryBankServiceClient(cc grpc.ClientConnInterface) MemoryBankServiceClient { |
| 71 |
return &memoryBankServiceClient{cc} |
| 72 |
} |
| 73 |
|
| 74 |
func (c *memoryBankServiceClient) CreateMemory(ctx context.Context, in *CreateMemoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 75 |
out := new(longrunningpb.Operation) |
| 76 |
err := c.cc.Invoke(ctx, MemoryBankService_CreateMemory_FullMethodName, in, out, opts...) |
| 77 |
if err != nil { |
| 78 |
return nil, err |
| 79 |
} |
| 80 |
return out, nil |
| 81 |
} |
| 82 |
|
| 83 |
func (c *memoryBankServiceClient) GetMemory(ctx context.Context, in *GetMemoryRequest, opts ...grpc.CallOption) (*Memory, error) { |
| 84 |
out := new(Memory) |
| 85 |
err := c.cc.Invoke(ctx, MemoryBankService_GetMemory_FullMethodName, in, out, opts...) |
| 86 |
if err != nil { |
| 87 |
return nil, err |
| 88 |
} |
| 89 |
return out, nil |
| 90 |
} |
| 91 |
|
| 92 |
func (c *memoryBankServiceClient) UpdateMemory(ctx context.Context, in *UpdateMemoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 93 |
out := new(longrunningpb.Operation) |
| 94 |
err := c.cc.Invoke(ctx, MemoryBankService_UpdateMemory_FullMethodName, in, out, opts...) |
| 95 |
if err != nil { |
| 96 |
return nil, err |
| 97 |
} |
| 98 |
return out, nil |
| 99 |
} |
| 100 |
|
| 101 |
func (c *memoryBankServiceClient) ListMemories(ctx context.Context, in *ListMemoriesRequest, opts ...grpc.CallOption) (*ListMemoriesResponse, error) { |
| 102 |
out := new(ListMemoriesResponse) |
| 103 |
err := c.cc.Invoke(ctx, MemoryBankService_ListMemories_FullMethodName, in, out, opts...) |
| 104 |
if err != nil { |
| 105 |
return nil, err |
| 106 |
} |
| 107 |
return out, nil |
| 108 |
} |
| 109 |
|
| 110 |
func (c *memoryBankServiceClient) DeleteMemory(ctx context.Context, in *DeleteMemoryRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 111 |
out := new(longrunningpb.Operation) |
| 112 |
err := c.cc.Invoke(ctx, MemoryBankService_DeleteMemory_FullMethodName, in, out, opts...) |
| 113 |
if err != nil { |
| 114 |
return nil, err |
| 115 |
} |
| 116 |
return out, nil |
| 117 |
} |
| 118 |
|
| 119 |
func (c *memoryBankServiceClient) GenerateMemories(ctx context.Context, in *GenerateMemoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 120 |
out := new(longrunningpb.Operation) |
| 121 |
err := c.cc.Invoke(ctx, MemoryBankService_GenerateMemories_FullMethodName, in, out, opts...) |
| 122 |
if err != nil { |
| 123 |
return nil, err |
| 124 |
} |
| 125 |
return out, nil |
| 126 |
} |
| 127 |
|
| 128 |
func (c *memoryBankServiceClient) RetrieveMemories(ctx context.Context, in *RetrieveMemoriesRequest, opts ...grpc.CallOption) (*RetrieveMemoriesResponse, error) { |
| 129 |
out := new(RetrieveMemoriesResponse) |
| 130 |
err := c.cc.Invoke(ctx, MemoryBankService_RetrieveMemories_FullMethodName, in, out, opts...) |
| 131 |
if err != nil { |
| 132 |
return nil, err |
| 133 |
} |
| 134 |
return out, nil |
| 135 |
} |
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
type MemoryBankServiceServer interface { |
| 141 |
|
| 142 |
CreateMemory(context.Context, *CreateMemoryRequest) (*longrunningpb.Operation, error) |
| 143 |
|
| 144 |
GetMemory(context.Context, *GetMemoryRequest) (*Memory, error) |
| 145 |
|
| 146 |
UpdateMemory(context.Context, *UpdateMemoryRequest) (*longrunningpb.Operation, error) |
| 147 |
|
| 148 |
ListMemories(context.Context, *ListMemoriesRequest) (*ListMemoriesResponse, error) |
| 149 |
|
| 150 |
DeleteMemory(context.Context, *DeleteMemoryRequest) (*longrunningpb.Operation, error) |
| 151 |
|
| 152 |
GenerateMemories(context.Context, *GenerateMemoriesRequest) (*longrunningpb.Operation, error) |
| 153 |
|
| 154 |
RetrieveMemories(context.Context, *RetrieveMemoriesRequest) (*RetrieveMemoriesResponse, error) |
| 155 |
} |
| 156 |
|
| 157 |
|
| 158 |
type UnimplementedMemoryBankServiceServer struct { |
| 159 |
} |
| 160 |
|
| 161 |
func (UnimplementedMemoryBankServiceServer) CreateMemory(context.Context, *CreateMemoryRequest) (*longrunningpb.Operation, error) { |
| 162 |
return nil, status.Errorf(codes.Unimplemented, "method CreateMemory not implemented") |
| 163 |
} |
| 164 |
func (UnimplementedMemoryBankServiceServer) GetMemory(context.Context, *GetMemoryRequest) (*Memory, error) { |
| 165 |
return nil, status.Errorf(codes.Unimplemented, "method GetMemory not implemented") |
| 166 |
} |
| 167 |
func (UnimplementedMemoryBankServiceServer) UpdateMemory(context.Context, *UpdateMemoryRequest) (*longrunningpb.Operation, error) { |
| 168 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateMemory not implemented") |
| 169 |
} |
| 170 |
func (UnimplementedMemoryBankServiceServer) ListMemories(context.Context, *ListMemoriesRequest) (*ListMemoriesResponse, error) { |
| 171 |
return nil, status.Errorf(codes.Unimplemented, "method ListMemories not implemented") |
| 172 |
} |
| 173 |
func (UnimplementedMemoryBankServiceServer) DeleteMemory(context.Context, *DeleteMemoryRequest) (*longrunningpb.Operation, error) { |
| 174 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteMemory not implemented") |
| 175 |
} |
| 176 |
func (UnimplementedMemoryBankServiceServer) GenerateMemories(context.Context, *GenerateMemoriesRequest) (*longrunningpb.Operation, error) { |
| 177 |
return nil, status.Errorf(codes.Unimplemented, "method GenerateMemories not implemented") |
| 178 |
} |
| 179 |
func (UnimplementedMemoryBankServiceServer) RetrieveMemories(context.Context, *RetrieveMemoriesRequest) (*RetrieveMemoriesResponse, error) { |
| 180 |
return nil, status.Errorf(codes.Unimplemented, "method RetrieveMemories not implemented") |
| 181 |
} |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
type UnsafeMemoryBankServiceServer interface { |
| 187 |
mustEmbedUnimplementedMemoryBankServiceServer() |
| 188 |
} |
| 189 |
|
| 190 |
func RegisterMemoryBankServiceServer(s grpc.ServiceRegistrar, srv MemoryBankServiceServer) { |
| 191 |
s.RegisterService(&MemoryBankService_ServiceDesc, srv) |
| 192 |
} |
| 193 |
|
| 194 |
func _MemoryBankService_CreateMemory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 195 |
in := new(CreateMemoryRequest) |
| 196 |
if err := dec(in); err != nil { |
| 197 |
return nil, err |
| 198 |
} |
| 199 |
if interceptor == nil { |
| 200 |
return srv.(MemoryBankServiceServer).CreateMemory(ctx, in) |
| 201 |
} |
| 202 |
info := &grpc.UnaryServerInfo{ |
| 203 |
Server: srv, |
| 204 |
FullMethod: MemoryBankService_CreateMemory_FullMethodName, |
| 205 |
} |
| 206 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 207 |
return srv.(MemoryBankServiceServer).CreateMemory(ctx, req.(*CreateMemoryRequest)) |
| 208 |
} |
| 209 |
return interceptor(ctx, in, info, handler) |
| 210 |
} |
| 211 |
|
| 212 |
func _MemoryBankService_GetMemory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 213 |
in := new(GetMemoryRequest) |
| 214 |
if err := dec(in); err != nil { |
| 215 |
return nil, err |
| 216 |
} |
| 217 |
if interceptor == nil { |
| 218 |
return srv.(MemoryBankServiceServer).GetMemory(ctx, in) |
| 219 |
} |
| 220 |
info := &grpc.UnaryServerInfo{ |
| 221 |
Server: srv, |
| 222 |
FullMethod: MemoryBankService_GetMemory_FullMethodName, |
| 223 |
} |
| 224 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 225 |
return srv.(MemoryBankServiceServer).GetMemory(ctx, req.(*GetMemoryRequest)) |
| 226 |
} |
| 227 |
return interceptor(ctx, in, info, handler) |
| 228 |
} |
| 229 |
|
| 230 |
func _MemoryBankService_UpdateMemory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 231 |
in := new(UpdateMemoryRequest) |
| 232 |
if err := dec(in); err != nil { |
| 233 |
return nil, err |
| 234 |
} |
| 235 |
if interceptor == nil { |
| 236 |
return srv.(MemoryBankServiceServer).UpdateMemory(ctx, in) |
| 237 |
} |
| 238 |
info := &grpc.UnaryServerInfo{ |
| 239 |
Server: srv, |
| 240 |
FullMethod: MemoryBankService_UpdateMemory_FullMethodName, |
| 241 |
} |
| 242 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 243 |
return srv.(MemoryBankServiceServer).UpdateMemory(ctx, req.(*UpdateMemoryRequest)) |
| 244 |
} |
| 245 |
return interceptor(ctx, in, info, handler) |
| 246 |
} |
| 247 |
|
| 248 |
func _MemoryBankService_ListMemories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 249 |
in := new(ListMemoriesRequest) |
| 250 |
if err := dec(in); err != nil { |
| 251 |
return nil, err |
| 252 |
} |
| 253 |
if interceptor == nil { |
| 254 |
return srv.(MemoryBankServiceServer).ListMemories(ctx, in) |
| 255 |
} |
| 256 |
info := &grpc.UnaryServerInfo{ |
| 257 |
Server: srv, |
| 258 |
FullMethod: MemoryBankService_ListMemories_FullMethodName, |
| 259 |
} |
| 260 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 261 |
return srv.(MemoryBankServiceServer).ListMemories(ctx, req.(*ListMemoriesRequest)) |
| 262 |
} |
| 263 |
return interceptor(ctx, in, info, handler) |
| 264 |
} |
| 265 |
|
| 266 |
func _MemoryBankService_DeleteMemory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 267 |
in := new(DeleteMemoryRequest) |
| 268 |
if err := dec(in); err != nil { |
| 269 |
return nil, err |
| 270 |
} |
| 271 |
if interceptor == nil { |
| 272 |
return srv.(MemoryBankServiceServer).DeleteMemory(ctx, in) |
| 273 |
} |
| 274 |
info := &grpc.UnaryServerInfo{ |
| 275 |
Server: srv, |
| 276 |
FullMethod: MemoryBankService_DeleteMemory_FullMethodName, |
| 277 |
} |
| 278 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 279 |
return srv.(MemoryBankServiceServer).DeleteMemory(ctx, req.(*DeleteMemoryRequest)) |
| 280 |
} |
| 281 |
return interceptor(ctx, in, info, handler) |
| 282 |
} |
| 283 |
|
| 284 |
func _MemoryBankService_GenerateMemories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 285 |
in := new(GenerateMemoriesRequest) |
| 286 |
if err := dec(in); err != nil { |
| 287 |
return nil, err |
| 288 |
} |
| 289 |
if interceptor == nil { |
| 290 |
return srv.(MemoryBankServiceServer).GenerateMemories(ctx, in) |
| 291 |
} |
| 292 |
info := &grpc.UnaryServerInfo{ |
| 293 |
Server: srv, |
| 294 |
FullMethod: MemoryBankService_GenerateMemories_FullMethodName, |
| 295 |
} |
| 296 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 297 |
return srv.(MemoryBankServiceServer).GenerateMemories(ctx, req.(*GenerateMemoriesRequest)) |
| 298 |
} |
| 299 |
return interceptor(ctx, in, info, handler) |
| 300 |
} |
| 301 |
|
| 302 |
func _MemoryBankService_RetrieveMemories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 303 |
in := new(RetrieveMemoriesRequest) |
| 304 |
if err := dec(in); err != nil { |
| 305 |
return nil, err |
| 306 |
} |
| 307 |
if interceptor == nil { |
| 308 |
return srv.(MemoryBankServiceServer).RetrieveMemories(ctx, in) |
| 309 |
} |
| 310 |
info := &grpc.UnaryServerInfo{ |
| 311 |
Server: srv, |
| 312 |
FullMethod: MemoryBankService_RetrieveMemories_FullMethodName, |
| 313 |
} |
| 314 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 315 |
return srv.(MemoryBankServiceServer).RetrieveMemories(ctx, req.(*RetrieveMemoriesRequest)) |
| 316 |
} |
| 317 |
return interceptor(ctx, in, info, handler) |
| 318 |
} |
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
var MemoryBankService_ServiceDesc = grpc.ServiceDesc{ |
| 324 |
ServiceName: "google.cloud.aiplatform.v1beta1.MemoryBankService", |
| 325 |
HandlerType: (*MemoryBankServiceServer)(nil), |
| 326 |
Methods: []grpc.MethodDesc{ |
| 327 |
{ |
| 328 |
MethodName: "CreateMemory", |
| 329 |
Handler: _MemoryBankService_CreateMemory_Handler, |
| 330 |
}, |
| 331 |
{ |
| 332 |
MethodName: "GetMemory", |
| 333 |
Handler: _MemoryBankService_GetMemory_Handler, |
| 334 |
}, |
| 335 |
{ |
| 336 |
MethodName: "UpdateMemory", |
| 337 |
Handler: _MemoryBankService_UpdateMemory_Handler, |
| 338 |
}, |
| 339 |
{ |
| 340 |
MethodName: "ListMemories", |
| 341 |
Handler: _MemoryBankService_ListMemories_Handler, |
| 342 |
}, |
| 343 |
{ |
| 344 |
MethodName: "DeleteMemory", |
| 345 |
Handler: _MemoryBankService_DeleteMemory_Handler, |
| 346 |
}, |
| 347 |
{ |
| 348 |
MethodName: "GenerateMemories", |
| 349 |
Handler: _MemoryBankService_GenerateMemories_Handler, |
| 350 |
}, |
| 351 |
{ |
| 352 |
MethodName: "RetrieveMemories", |
| 353 |
Handler: _MemoryBankService_RetrieveMemories_Handler, |
| 354 |
}, |
| 355 |
}, |
| 356 |
Streams: []grpc.StreamDesc{}, |
| 357 |
Metadata: "google/cloud/aiplatform/v1beta1/memory_bank_service.proto", |
| 358 |
} |