[#XX] api: Regenerate protobufs with new service namespace

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-11-07 19:07:25 +03:00
parent cb813e27a8
commit 0219aeff45
7 changed files with 494 additions and 511 deletions

View file

@ -19,7 +19,7 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
AccountingService_Balance_FullMethodName = "/neo.fs.v2.accounting.AccountingService/Balance"
AccountingService_Balance_FullMethodName = "/frost.fs.accounting.AccountingService/Balance"
)
// AccountingServiceClient is the client API for AccountingService service.
@ -106,7 +106,7 @@ func _AccountingService_Balance_Handler(srv interface{}, ctx context.Context, de
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var AccountingService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "neo.fs.v2.accounting.AccountingService",
ServiceName: "frost.fs.accounting.AccountingService",
HandlerType: (*AccountingServiceServer)(nil),
Methods: []grpc.MethodDesc{
{

View file

@ -19,9 +19,9 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
APEManagerService_AddChain_FullMethodName = "/frostfs.v2.apemanager.APEManagerService/AddChain"
APEManagerService_RemoveChain_FullMethodName = "/frostfs.v2.apemanager.APEManagerService/RemoveChain"
APEManagerService_ListChains_FullMethodName = "/frostfs.v2.apemanager.APEManagerService/ListChains"
APEManagerService_AddChain_FullMethodName = "/frost.fs.apemanager.APEManagerService/AddChain"
APEManagerService_RemoveChain_FullMethodName = "/frost.fs.apemanager.APEManagerService/RemoveChain"
APEManagerService_ListChains_FullMethodName = "/frost.fs.apemanager.APEManagerService/ListChains"
)
// APEManagerServiceClient is the client API for APEManagerService service.
@ -224,7 +224,7 @@ func _APEManagerService_ListChains_Handler(srv interface{}, ctx context.Context,
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var APEManagerService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "frostfs.v2.apemanager.APEManagerService",
ServiceName: "frost.fs.apemanager.APEManagerService",
HandlerType: (*APEManagerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{

View file

@ -19,10 +19,10 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
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_Put_FullMethodName = "/frost.fs.container.ContainerService/Put"
ContainerService_Delete_FullMethodName = "/frost.fs.container.ContainerService/Delete"
ContainerService_Get_FullMethodName = "/frost.fs.container.ContainerService/Get"
ContainerService_List_FullMethodName = "/frost.fs.container.ContainerService/List"
)
// ContainerServiceClient is the client API for ContainerService service.
@ -273,7 +273,7 @@ func _ContainerService_List_Handler(srv interface{}, ctx context.Context, dec fu
// 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",
ServiceName: "frost.fs.container.ContainerService",
HandlerType: (*ContainerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{

View file

@ -19,9 +19,9 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
NetmapService_LocalNodeInfo_FullMethodName = "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo"
NetmapService_NetworkInfo_FullMethodName = "/neo.fs.v2.netmap.NetmapService/NetworkInfo"
NetmapService_NetmapSnapshot_FullMethodName = "/neo.fs.v2.netmap.NetmapService/NetmapSnapshot"
NetmapService_LocalNodeInfo_FullMethodName = "/frost.fs.netmap.NetmapService/LocalNodeInfo"
NetmapService_NetworkInfo_FullMethodName = "/frost.fs.netmap.NetmapService/NetworkInfo"
NetmapService_NetmapSnapshot_FullMethodName = "/frost.fs.netmap.NetmapService/NetmapSnapshot"
)
// NetmapServiceClient is the client API for NetmapService service.
@ -206,7 +206,7 @@ func _NetmapService_NetmapSnapshot_Handler(srv interface{}, ctx context.Context,
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var NetmapService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "neo.fs.v2.netmap.NetmapService",
ServiceName: "frost.fs.netmap.NetmapService",
HandlerType: (*NetmapServiceServer)(nil),
Methods: []grpc.MethodDesc{
{

View file

@ -19,15 +19,15 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
ObjectService_Get_FullMethodName = "/neo.fs.v2.object.ObjectService/Get"
ObjectService_Put_FullMethodName = "/neo.fs.v2.object.ObjectService/Put"
ObjectService_Delete_FullMethodName = "/neo.fs.v2.object.ObjectService/Delete"
ObjectService_Head_FullMethodName = "/neo.fs.v2.object.ObjectService/Head"
ObjectService_Search_FullMethodName = "/neo.fs.v2.object.ObjectService/Search"
ObjectService_GetRange_FullMethodName = "/neo.fs.v2.object.ObjectService/GetRange"
ObjectService_GetRangeHash_FullMethodName = "/neo.fs.v2.object.ObjectService/GetRangeHash"
ObjectService_PutSingle_FullMethodName = "/neo.fs.v2.object.ObjectService/PutSingle"
ObjectService_Patch_FullMethodName = "/neo.fs.v2.object.ObjectService/Patch"
ObjectService_Get_FullMethodName = "/frost.fs.object.ObjectService/Get"
ObjectService_Put_FullMethodName = "/frost.fs.object.ObjectService/Put"
ObjectService_Delete_FullMethodName = "/frost.fs.object.ObjectService/Delete"
ObjectService_Head_FullMethodName = "/frost.fs.object.ObjectService/Head"
ObjectService_Search_FullMethodName = "/frost.fs.object.ObjectService/Search"
ObjectService_GetRange_FullMethodName = "/frost.fs.object.ObjectService/GetRange"
ObjectService_GetRangeHash_FullMethodName = "/frost.fs.object.ObjectService/GetRangeHash"
ObjectService_PutSingle_FullMethodName = "/frost.fs.object.ObjectService/PutSingle"
ObjectService_Patch_FullMethodName = "/frost.fs.object.ObjectService/Patch"
)
// ObjectServiceClient is the client API for ObjectService service.
@ -42,16 +42,13 @@ type ObjectServiceClient interface {
// chunks keeping the receiving order.
//
// Extended headers can change `Get` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requsted version of Network Map for object placement
// calculation.
// * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
// - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// Will try older versions (starting from `__SYSTEM__NETMAP_EPOCH`
// (`__NEOFS__NETMAP_EPOCH` is deprecated) if specified or the latest one
// otherwise) of Network Map to find an object until the depth limit is
// reached.
// if specified or the latest one otherwise) of Network Map
// to find an object until the depth limit is reached.
//
// Please refer to detailed `XHeader` description.
//
@ -80,8 +77,7 @@ type ObjectServiceClient interface {
// Chunk messages SHOULD be sent in the direct order of fragmentation.
//
// Extended headers can change `Put` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
//
@ -106,6 +102,7 @@ type ObjectServiceClient interface {
// - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
// (for trusted object preparation) session private key does not exist or
// has
//
// been deleted;
// - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
// provided session token has expired.
@ -114,8 +111,7 @@ type ObjectServiceClient interface {
// guarantee. Object will be marked for removal and deleted eventually.
//
// Extended headers can change `Delete` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -144,8 +140,7 @@ type ObjectServiceClient interface {
// the very minimal information will be returned instead.
//
// Extended headers can change `Head` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -173,8 +168,7 @@ type ObjectServiceClient interface {
// Specification section for more details.
//
// Extended headers can change `Search` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -199,12 +193,10 @@ type ObjectServiceClient interface {
// receiving order.
//
// Extended headers can change `GetRange` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
// * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
// - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// Will try older versions of Network Map to find an object until the depth
// limit is reached.
//
@ -235,12 +227,10 @@ type ObjectServiceClient interface {
// the request. Note that hash is calculated for XORed data.
//
// Extended headers can change `GetRangeHash` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
// * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
// - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// Will try older versions of Network Map to find an object until the depth
// limit is reached.
//
@ -268,8 +258,7 @@ type ObjectServiceClient interface {
// an object MUST be set.
//
// Extended headers can change `Put` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -294,6 +283,7 @@ type ObjectServiceClient interface {
// - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
// (for trusted object preparation) session private key does not exist or
// has
//
// been deleted;
// - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
// provided session token has expired.
@ -317,8 +307,7 @@ type ObjectServiceClient interface {
// 3. The application of the same patches for the object a few times.
//
// Extended headers can change `Patch` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
//
@ -568,16 +557,13 @@ type ObjectServiceServer interface {
// chunks keeping the receiving order.
//
// Extended headers can change `Get` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requsted version of Network Map for object placement
// calculation.
// * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
// - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// Will try older versions (starting from `__SYSTEM__NETMAP_EPOCH`
// (`__NEOFS__NETMAP_EPOCH` is deprecated) if specified or the latest one
// otherwise) of Network Map to find an object until the depth limit is
// reached.
// if specified or the latest one otherwise) of Network Map
// to find an object until the depth limit is reached.
//
// Please refer to detailed `XHeader` description.
//
@ -606,8 +592,7 @@ type ObjectServiceServer interface {
// Chunk messages SHOULD be sent in the direct order of fragmentation.
//
// Extended headers can change `Put` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
//
@ -632,6 +617,7 @@ type ObjectServiceServer interface {
// - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
// (for trusted object preparation) session private key does not exist or
// has
//
// been deleted;
// - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
// provided session token has expired.
@ -640,8 +626,7 @@ type ObjectServiceServer interface {
// guarantee. Object will be marked for removal and deleted eventually.
//
// Extended headers can change `Delete` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -670,8 +655,7 @@ type ObjectServiceServer interface {
// the very minimal information will be returned instead.
//
// Extended headers can change `Head` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -699,8 +683,7 @@ type ObjectServiceServer interface {
// Specification section for more details.
//
// Extended headers can change `Search` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -725,12 +708,10 @@ type ObjectServiceServer interface {
// receiving order.
//
// Extended headers can change `GetRange` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
// * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
// - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// Will try older versions of Network Map to find an object until the depth
// limit is reached.
//
@ -761,12 +742,10 @@ type ObjectServiceServer interface {
// the request. Note that hash is calculated for XORed data.
//
// Extended headers can change `GetRangeHash` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH ] \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH ] \
// Will use the requested version of Network Map for object placement
// calculation.
// * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
// - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
// Will try older versions of Network Map to find an object until the depth
// limit is reached.
//
@ -794,8 +773,7 @@ type ObjectServiceServer interface {
// an object MUST be set.
//
// Extended headers can change `Put` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH \
// Will use the requested version of Network Map for object placement
// calculation.
//
@ -820,6 +798,7 @@ type ObjectServiceServer interface {
// - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
// (for trusted object preparation) session private key does not exist or
// has
//
// been deleted;
// - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
// provided session token has expired.
@ -843,8 +822,7 @@ type ObjectServiceServer interface {
// 3. The application of the same patches for the object a few times.
//
// Extended headers can change `Patch` behaviour:
// * [ __SYSTEM__NETMAP_EPOCH \
// (`__NEOFS__NETMAP_EPOCH` is deprecated) \
// - [ __SYSTEM__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
//
@ -1108,7 +1086,7 @@ func (x *objectServicePatchServer) Recv() (*PatchRequest, error) {
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ObjectService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "neo.fs.v2.object.ObjectService",
ServiceName: "frost.fs.object.ObjectService",
HandlerType: (*ObjectServiceServer)(nil),
Methods: []grpc.MethodDesc{
{

View file

@ -19,7 +19,7 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
SessionService_Create_FullMethodName = "/neo.fs.v2.session.SessionService/Create"
SessionService_Create_FullMethodName = "/frost.fs.session.SessionService/Create"
)
// SessionServiceClient is the client API for SessionService service.
@ -106,7 +106,7 @@ func _SessionService_Create_Handler(srv interface{}, ctx context.Context, dec fu
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SessionService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "neo.fs.v2.session.SessionService",
ServiceName: "frost.fs.session.SessionService",
HandlerType: (*SessionServiceServer)(nil),
Methods: []grpc.MethodDesc{
{

View file

@ -25,6 +25,11 @@ for file in $ARGS2; do
sed -i "s/import\ \"\(.*\)\/\(.*\)\.proto\";/import\ \"\1\/grpc\/\2\.proto\";/" $file
sed -i "s/api-go\\/v2/sdk-go\\/api/" $file
sed -i "s/import \"/import \"api\//" $file
base_path="git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api"
dir_path=$(dirname "$file" | sed 's/^\.\///')
package_name=$(dirname "$dir_path")
sed -i "2ioption go_package = \"$base_path/$package_name/grpc;$package_name\";" "$file"
done