2021-09-28 15:11:33 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2022-07-04 09:07:35 +00:00
// versions:
2023-04-17 12:44:35 +00:00
// - protoc-gen-go-grpc v1.3.0
2024-07-26 07:15:06 +00:00
// - protoc v5.27.2
2022-07-04 09:07:35 +00:00
// source: container/grpc/service.proto
2021-09-28 15:11:33 +00:00
package container
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
2023-04-17 12:44:35 +00:00
const (
2024-07-26 07:15:06 +00:00
ContainerService_Put_FullMethodName = "/neo.fs.v2.container.ContainerService/Put"
ContainerService_Delete_FullMethodName = "/neo.fs.v2.container.ContainerService/Delete"
ContainerService_Get_FullMethodName = "/neo.fs.v2.container.ContainerService/Get"
ContainerService_List_FullMethodName = "/neo.fs.v2.container.ContainerService/List"
ContainerService_GetExtendedACL_FullMethodName = "/neo.fs.v2.container.ContainerService/GetExtendedACL"
2023-04-17 12:44:35 +00:00
)
2021-09-28 15:11:33 +00:00
// ContainerServiceClient is the client API for ContainerService service.
//
// 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.
type ContainerServiceClient interface {
// `Put` invokes `Container` smart contract's `Put` method and returns
// response immediately. After a new block is issued in sidechain, request is
2024-03-19 06:55:23 +00:00
// verified by Inner Ring nodes. After one more block in sidechain, the
// container is added into smart contract storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// request to save the container has been sent to the sidechain;
2024-03-26 15:52:20 +00:00
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container create access denied.
2021-09-28 15:11:33 +00:00
Put ( ctx context . Context , in * PutRequest , opts ... grpc . CallOption ) ( * PutResponse , error )
// `Delete` invokes `Container` smart contract's `Delete` method and returns
// response immediately. After a new block is issued in sidechain, request is
2024-03-19 06:55:23 +00:00
// verified by Inner Ring nodes. After one more block in sidechain, the
// container is added into smart contract storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// request to remove the container has been sent to the sidechain;
2024-03-26 15:52:20 +00:00
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container delete access denied.
2021-09-28 15:11:33 +00:00
Delete ( ctx context . Context , in * DeleteRequest , opts ... grpc . CallOption ) ( * DeleteResponse , error )
// Returns container structure from `Container` smart contract storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// container has been successfully read;
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
2024-03-26 15:52:20 +00:00
// requested container not found;
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// access to container is denied.
2021-09-28 15:11:33 +00:00
Get ( ctx context . Context , in * GetRequest , opts ... grpc . CallOption ) ( * GetResponse , error )
// Returns all owner's containers from 'Container` smart contract' storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// container list has been successfully read;
2024-03-26 15:52:20 +00:00
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container list access denied.
2021-09-28 15:11:33 +00:00
List ( ctx context . Context , in * ListRequest , opts ... grpc . CallOption ) ( * ListResponse , error )
// Returns Extended ACL table and signature from `Container` smart contract
// storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// container eACL has been successfully read;
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
// container not found;
// - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
2024-03-26 15:52:20 +00:00
// eACL table not found;
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// access to container eACL is denied.
2021-09-28 15:11:33 +00:00
GetExtendedACL ( ctx context . Context , in * GetExtendedACLRequest , opts ... grpc . CallOption ) ( * GetExtendedACLResponse , error )
}
type containerServiceClient struct {
cc grpc . ClientConnInterface
}
func NewContainerServiceClient ( cc grpc . ClientConnInterface ) ContainerServiceClient {
return & containerServiceClient { cc }
}
func ( c * containerServiceClient ) Put ( ctx context . Context , in * PutRequest , opts ... grpc . CallOption ) ( * PutResponse , error ) {
out := new ( PutResponse )
2023-04-17 12:44:35 +00:00
err := c . cc . Invoke ( ctx , ContainerService_Put_FullMethodName , in , out , opts ... )
2021-09-28 15:11:33 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * containerServiceClient ) Delete ( ctx context . Context , in * DeleteRequest , opts ... grpc . CallOption ) ( * DeleteResponse , error ) {
out := new ( DeleteResponse )
2023-04-17 12:44:35 +00:00
err := c . cc . Invoke ( ctx , ContainerService_Delete_FullMethodName , in , out , opts ... )
2021-09-28 15:11:33 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * containerServiceClient ) Get ( ctx context . Context , in * GetRequest , opts ... grpc . CallOption ) ( * GetResponse , error ) {
out := new ( GetResponse )
2023-04-17 12:44:35 +00:00
err := c . cc . Invoke ( ctx , ContainerService_Get_FullMethodName , in , out , opts ... )
2021-09-28 15:11:33 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * containerServiceClient ) List ( ctx context . Context , in * ListRequest , opts ... grpc . CallOption ) ( * ListResponse , error ) {
out := new ( ListResponse )
2023-04-17 12:44:35 +00:00
err := c . cc . Invoke ( ctx , ContainerService_List_FullMethodName , in , out , opts ... )
2021-09-28 15:11:33 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * containerServiceClient ) GetExtendedACL ( ctx context . Context , in * GetExtendedACLRequest , opts ... grpc . CallOption ) ( * GetExtendedACLResponse , error ) {
out := new ( GetExtendedACLResponse )
2023-04-17 12:44:35 +00:00
err := c . cc . Invoke ( ctx , ContainerService_GetExtendedACL_FullMethodName , in , out , opts ... )
2021-09-28 15:11:33 +00:00
if err != nil {
return nil , err
}
return out , nil
}
// ContainerServiceServer is the server API for ContainerService service.
// All implementations should embed UnimplementedContainerServiceServer
// for forward compatibility
type ContainerServiceServer interface {
// `Put` invokes `Container` smart contract's `Put` method and returns
// response immediately. After a new block is issued in sidechain, request is
2024-03-19 06:55:23 +00:00
// verified by Inner Ring nodes. After one more block in sidechain, the
// container is added into smart contract storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// request to save the container has been sent to the sidechain;
2024-03-26 15:52:20 +00:00
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container create access denied.
2021-09-28 15:11:33 +00:00
Put ( context . Context , * PutRequest ) ( * PutResponse , error )
// `Delete` invokes `Container` smart contract's `Delete` method and returns
// response immediately. After a new block is issued in sidechain, request is
2024-03-19 06:55:23 +00:00
// verified by Inner Ring nodes. After one more block in sidechain, the
// container is added into smart contract storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// request to remove the container has been sent to the sidechain;
2024-03-26 15:52:20 +00:00
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container delete access denied.
2021-09-28 15:11:33 +00:00
Delete ( context . Context , * DeleteRequest ) ( * DeleteResponse , error )
// Returns container structure from `Container` smart contract storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// container has been successfully read;
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
2024-03-26 15:52:20 +00:00
// requested container not found;
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// access to container is denied.
2021-09-28 15:11:33 +00:00
Get ( context . Context , * GetRequest ) ( * GetResponse , error )
// Returns all owner's containers from 'Container` smart contract' storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// container list has been successfully read;
2024-03-26 15:52:20 +00:00
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container list access denied.
2021-09-28 15:11:33 +00:00
List ( context . Context , * ListRequest ) ( * ListResponse , error )
// Returns Extended ACL table and signature from `Container` smart contract
// storage.
2021-10-04 12:32:16 +00:00
//
// Statuses:
2023-04-17 12:44:35 +00:00
// - **OK** (0, SECTION_SUCCESS): \
// container eACL has been successfully read;
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
// container not found;
// - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
2024-03-26 15:52:20 +00:00
// eACL table not found;
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// access to container eACL is denied.
2021-09-28 15:11:33 +00:00
GetExtendedACL ( context . Context , * GetExtendedACLRequest ) ( * GetExtendedACLResponse , error )
}
// UnimplementedContainerServiceServer should be embedded to have forward compatible implementations.
type UnimplementedContainerServiceServer struct {
}
func ( UnimplementedContainerServiceServer ) Put ( context . Context , * PutRequest ) ( * PutResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Put not implemented" )
}
func ( UnimplementedContainerServiceServer ) Delete ( context . Context , * DeleteRequest ) ( * DeleteResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Delete not implemented" )
}
func ( UnimplementedContainerServiceServer ) Get ( context . Context , * GetRequest ) ( * GetResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Get not implemented" )
}
func ( UnimplementedContainerServiceServer ) List ( context . Context , * ListRequest ) ( * ListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method List not implemented" )
}
func ( UnimplementedContainerServiceServer ) GetExtendedACL ( context . Context , * GetExtendedACLRequest ) ( * GetExtendedACLResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetExtendedACL not implemented" )
}
// UnsafeContainerServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ContainerServiceServer will
// result in compilation errors.
type UnsafeContainerServiceServer interface {
mustEmbedUnimplementedContainerServiceServer ( )
}
func RegisterContainerServiceServer ( s grpc . ServiceRegistrar , srv ContainerServiceServer ) {
s . RegisterService ( & ContainerService_ServiceDesc , srv )
}
func _ContainerService_Put_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( PutRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ContainerServiceServer ) . Put ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-04-17 12:44:35 +00:00
FullMethod : ContainerService_Put_FullMethodName ,
2021-09-28 15:11:33 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ContainerServiceServer ) . Put ( ctx , req . ( * PutRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ContainerService_Delete_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ContainerServiceServer ) . Delete ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-04-17 12:44:35 +00:00
FullMethod : ContainerService_Delete_FullMethodName ,
2021-09-28 15:11:33 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ContainerServiceServer ) . Delete ( ctx , req . ( * DeleteRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ContainerService_Get_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ContainerServiceServer ) . Get ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-04-17 12:44:35 +00:00
FullMethod : ContainerService_Get_FullMethodName ,
2021-09-28 15:11:33 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ContainerServiceServer ) . Get ( ctx , req . ( * GetRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ContainerService_List_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ContainerServiceServer ) . List ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-04-17 12:44:35 +00:00
FullMethod : ContainerService_List_FullMethodName ,
2021-09-28 15:11:33 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ContainerServiceServer ) . List ( ctx , req . ( * ListRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ContainerService_GetExtendedACL_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetExtendedACLRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ContainerServiceServer ) . GetExtendedACL ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-04-17 12:44:35 +00:00
FullMethod : ContainerService_GetExtendedACL_FullMethodName ,
2021-09-28 15:11:33 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ContainerServiceServer ) . GetExtendedACL ( ctx , req . ( * GetExtendedACLRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
// ContainerService_ServiceDesc is the grpc.ServiceDesc for ContainerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ContainerService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "neo.fs.v2.container.ContainerService" ,
HandlerType : ( * ContainerServiceServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "Put" ,
Handler : _ContainerService_Put_Handler ,
} ,
{
MethodName : "Delete" ,
Handler : _ContainerService_Delete_Handler ,
} ,
{
MethodName : "Get" ,
Handler : _ContainerService_Get_Handler ,
} ,
{
MethodName : "List" ,
Handler : _ContainerService_List_Handler ,
} ,
{
MethodName : "GetExtendedACL" ,
Handler : _ContainerService_GetExtendedACL_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
2021-11-17 09:35:56 +00:00
Metadata : "container/grpc/service.proto" ,
2021-09-28 15:11:33 +00:00
}