25da5d2e13
Replace all elements from `v2` to root directory. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
111 lines
2.5 KiB
Go
111 lines
2.5 KiB
Go
package netmap
|
|
|
|
import (
|
|
refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
|
|
session "github.com/nspcc-dev/neofs-api-go/v2/session/grpc"
|
|
)
|
|
|
|
// SetBody sets body of the request.
|
|
func (m *LocalNodeInfoRequest) SetBody(v *LocalNodeInfoRequest_Body) {
|
|
if m != nil {
|
|
m.Body = v
|
|
}
|
|
}
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
func (m *LocalNodeInfoRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
|
if m != nil {
|
|
m.MetaHeader = v
|
|
}
|
|
}
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
func (m *LocalNodeInfoRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
|
if m != nil {
|
|
m.VerifyHeader = v
|
|
}
|
|
}
|
|
|
|
// SetVersion sets version of response body.
|
|
func (m *LocalNodeInfoResponse_Body) SetVersion(v *refs.Version) {
|
|
if m != nil {
|
|
m.Version = v
|
|
}
|
|
}
|
|
|
|
// SetNodeInfo sets node info of response body.
|
|
func (m *LocalNodeInfoResponse_Body) SetNodeInfo(v *NodeInfo) {
|
|
if m != nil {
|
|
m.NodeInfo = v
|
|
}
|
|
}
|
|
|
|
// SetBody sets body of the response.
|
|
func (m *LocalNodeInfoResponse) SetBody(v *LocalNodeInfoResponse_Body) {
|
|
if m != nil {
|
|
m.Body = v
|
|
}
|
|
}
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
func (m *LocalNodeInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
|
if m != nil {
|
|
m.MetaHeader = v
|
|
}
|
|
}
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
func (m *LocalNodeInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
|
if m != nil {
|
|
m.VerifyHeader = v
|
|
}
|
|
}
|
|
|
|
// SetBody sets body of the request.
|
|
func (x *NetworkInfoRequest) SetBody(v *NetworkInfoRequest_Body) {
|
|
if x != nil {
|
|
x.Body = v
|
|
}
|
|
}
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
func (x *NetworkInfoRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
|
if x != nil {
|
|
x.MetaHeader = v
|
|
}
|
|
}
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
func (x *NetworkInfoRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
|
if x != nil {
|
|
x.VerifyHeader = v
|
|
}
|
|
}
|
|
|
|
// SetNetworkInfo sets information about the network.
|
|
func (x *NetworkInfoResponse_Body) SetNetworkInfo(v *NetworkInfo) {
|
|
if x != nil {
|
|
x.NetworkInfo = v
|
|
}
|
|
}
|
|
|
|
// SetBody sets body of the response.
|
|
func (x *NetworkInfoResponse) SetBody(v *NetworkInfoResponse_Body) {
|
|
if x != nil {
|
|
x.Body = v
|
|
}
|
|
}
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
func (x *NetworkInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
|
if x != nil {
|
|
x.MetaHeader = v
|
|
}
|
|
}
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
func (x *NetworkInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
|
if x != nil {
|
|
x.VerifyHeader = v
|
|
}
|
|
}
|