forked from TrueCloudLab/frostfs-api-go
[#176] Re-compile protobuf file from NeoFS API source
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3c5c589e63
commit
0117e90e9a
25 changed files with 1459 additions and 1459 deletions
141
v2/netmap/grpc/service.pb.go
generated
141
v2/netmap/grpc/service.pb.go
generated
|
@ -1,19 +1,14 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.23.0
|
||||
// protoc v3.14.0
|
||||
// protoc-gen-go v1.27.1
|
||||
// protoc v3.18.0
|
||||
// source: v2/netmap/grpc/service.proto
|
||||
|
||||
package netmap
|
||||
|
||||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
grpc1 "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
|
||||
grpc "github.com/nspcc-dev/neofs-api-go/v2/session/grpc"
|
||||
grpc2 "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
|
@ -27,10 +22,6 @@ const (
|
|||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// Get NodeInfo structure from the particular node directly
|
||||
type LocalNodeInfoRequest struct {
|
||||
state protoimpl.MessageState
|
||||
|
@ -784,131 +775,3 @@ func file_v2_netmap_grpc_service_proto_init() {
|
|||
file_v2_netmap_grpc_service_proto_goTypes = nil
|
||||
file_v2_netmap_grpc_service_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc2.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc2.SupportPackageIsVersion6
|
||||
|
||||
// NetmapServiceClient is the client API for NetmapService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type NetmapServiceClient interface {
|
||||
// Get NodeInfo structure from the particular node directly. Node information
|
||||
// can be taken from `Netmap` smart contract, but in some cases the one may
|
||||
// want to get recent information directly, or to talk to the node not yet
|
||||
// present in `Network Map` to find out what API version can be used for
|
||||
// further communication. Can also be used to check if node is up and running.
|
||||
LocalNodeInfo(ctx context.Context, in *LocalNodeInfoRequest, opts ...grpc2.CallOption) (*LocalNodeInfoResponse, error)
|
||||
// Read recent information about the NeoFS network.
|
||||
NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc2.CallOption) (*NetworkInfoResponse, error)
|
||||
}
|
||||
|
||||
type netmapServiceClient struct {
|
||||
cc grpc2.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewNetmapServiceClient(cc grpc2.ClientConnInterface) NetmapServiceClient {
|
||||
return &netmapServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *netmapServiceClient) LocalNodeInfo(ctx context.Context, in *LocalNodeInfoRequest, opts ...grpc2.CallOption) (*LocalNodeInfoResponse, error) {
|
||||
out := new(LocalNodeInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *netmapServiceClient) NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc2.CallOption) (*NetworkInfoResponse, error) {
|
||||
out := new(NetworkInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/NetworkInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// NetmapServiceServer is the server API for NetmapService service.
|
||||
type NetmapServiceServer interface {
|
||||
// Get NodeInfo structure from the particular node directly. Node information
|
||||
// can be taken from `Netmap` smart contract, but in some cases the one may
|
||||
// want to get recent information directly, or to talk to the node not yet
|
||||
// present in `Network Map` to find out what API version can be used for
|
||||
// further communication. Can also be used to check if node is up and running.
|
||||
LocalNodeInfo(context.Context, *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error)
|
||||
// Read recent information about the NeoFS network.
|
||||
NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedNetmapServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedNetmapServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedNetmapServiceServer) LocalNodeInfo(context.Context, *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method LocalNodeInfo not implemented")
|
||||
}
|
||||
func (*UnimplementedNetmapServiceServer) NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method NetworkInfo not implemented")
|
||||
}
|
||||
|
||||
func RegisterNetmapServiceServer(s *grpc2.Server, srv NetmapServiceServer) {
|
||||
s.RegisterService(&_NetmapService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _NetmapService_LocalNodeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc2.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(LocalNodeInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NetmapServiceServer).LocalNodeInfo(ctx, in)
|
||||
}
|
||||
info := &grpc2.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NetmapServiceServer).LocalNodeInfo(ctx, req.(*LocalNodeInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NetmapService_NetworkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc2.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(NetworkInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NetmapServiceServer).NetworkInfo(ctx, in)
|
||||
}
|
||||
info := &grpc2.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/neo.fs.v2.netmap.NetmapService/NetworkInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NetmapServiceServer).NetworkInfo(ctx, req.(*NetworkInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _NetmapService_serviceDesc = grpc2.ServiceDesc{
|
||||
ServiceName: "neo.fs.v2.netmap.NetmapService",
|
||||
HandlerType: (*NetmapServiceServer)(nil),
|
||||
Methods: []grpc2.MethodDesc{
|
||||
{
|
||||
MethodName: "LocalNodeInfo",
|
||||
Handler: _NetmapService_LocalNodeInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "NetworkInfo",
|
||||
Handler: _NetmapService_NetworkInfo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc2.StreamDesc{},
|
||||
Metadata: "v2/netmap/grpc/service.proto",
|
||||
}
|
||||
|
|
147
v2/netmap/grpc/service_grpc.pb.go
generated
Normal file
147
v2/netmap/grpc/service_grpc.pb.go
generated
Normal file
|
@ -0,0 +1,147 @@
|
|||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
|
||||
package netmap
|
||||
|
||||
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
|
||||
|
||||
// NetmapServiceClient is the client API for NetmapService 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 NetmapServiceClient interface {
|
||||
// Get NodeInfo structure from the particular node directly. Node information
|
||||
// can be taken from `Netmap` smart contract, but in some cases the one may
|
||||
// want to get recent information directly, or to talk to the node not yet
|
||||
// present in `Network Map` to find out what API version can be used for
|
||||
// further communication. Can also be used to check if node is up and running.
|
||||
LocalNodeInfo(ctx context.Context, in *LocalNodeInfoRequest, opts ...grpc.CallOption) (*LocalNodeInfoResponse, error)
|
||||
// Read recent information about the NeoFS network.
|
||||
NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfoResponse, error)
|
||||
}
|
||||
|
||||
type netmapServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewNetmapServiceClient(cc grpc.ClientConnInterface) NetmapServiceClient {
|
||||
return &netmapServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *netmapServiceClient) LocalNodeInfo(ctx context.Context, in *LocalNodeInfoRequest, opts ...grpc.CallOption) (*LocalNodeInfoResponse, error) {
|
||||
out := new(LocalNodeInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *netmapServiceClient) NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfoResponse, error) {
|
||||
out := new(NetworkInfoResponse)
|
||||
err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/NetworkInfo", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// NetmapServiceServer is the server API for NetmapService service.
|
||||
// All implementations should embed UnimplementedNetmapServiceServer
|
||||
// for forward compatibility
|
||||
type NetmapServiceServer interface {
|
||||
// Get NodeInfo structure from the particular node directly. Node information
|
||||
// can be taken from `Netmap` smart contract, but in some cases the one may
|
||||
// want to get recent information directly, or to talk to the node not yet
|
||||
// present in `Network Map` to find out what API version can be used for
|
||||
// further communication. Can also be used to check if node is up and running.
|
||||
LocalNodeInfo(context.Context, *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error)
|
||||
// Read recent information about the NeoFS network.
|
||||
NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedNetmapServiceServer should be embedded to have forward compatible implementations.
|
||||
type UnimplementedNetmapServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedNetmapServiceServer) LocalNodeInfo(context.Context, *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method LocalNodeInfo not implemented")
|
||||
}
|
||||
func (UnimplementedNetmapServiceServer) NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method NetworkInfo not implemented")
|
||||
}
|
||||
|
||||
// UnsafeNetmapServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to NetmapServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeNetmapServiceServer interface {
|
||||
mustEmbedUnimplementedNetmapServiceServer()
|
||||
}
|
||||
|
||||
func RegisterNetmapServiceServer(s grpc.ServiceRegistrar, srv NetmapServiceServer) {
|
||||
s.RegisterService(&NetmapService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _NetmapService_LocalNodeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(LocalNodeInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NetmapServiceServer).LocalNodeInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NetmapServiceServer).LocalNodeInfo(ctx, req.(*LocalNodeInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _NetmapService_NetworkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(NetworkInfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(NetmapServiceServer).NetworkInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/neo.fs.v2.netmap.NetmapService/NetworkInfo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(NetmapServiceServer).NetworkInfo(ctx, req.(*NetworkInfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// NetmapService_ServiceDesc is the grpc.ServiceDesc for NetmapService service.
|
||||
// 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",
|
||||
HandlerType: (*NetmapServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "LocalNodeInfo",
|
||||
Handler: _NetmapService_LocalNodeInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "NetworkInfo",
|
||||
Handler: _NetmapService_NetworkInfo_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "v2/netmap/grpc/service.proto",
|
||||
}
|
9
v2/netmap/grpc/types.pb.go
generated
9
v2/netmap/grpc/types.pb.go
generated
|
@ -1,13 +1,12 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.23.0
|
||||
// protoc v3.14.0
|
||||
// protoc-gen-go v1.27.1
|
||||
// protoc v3.18.0
|
||||
// source: v2/netmap/grpc/types.proto
|
||||
|
||||
package netmap
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
|
@ -21,10 +20,6 @@ const (
|
|||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// Operations on filters
|
||||
type Operation int32
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue