2020-09-04 08:47:15 +00:00
|
|
|
package netmap
|
|
|
|
|
|
|
|
import (
|
2022-12-09 11:16:24 +00:00
|
|
|
refs "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
|
|
|
|
session "github.com/TrueCloudLab/frostfs-api-go/v2/session/grpc"
|
2020-09-04 08:47:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *LocalNodeInfoRequest) SetBody(v *LocalNodeInfoRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
|
|
func (m *LocalNodeInfoRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
|
|
func (m *LocalNodeInfoRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVersion sets version of response body.
|
|
|
|
func (m *LocalNodeInfoResponse_Body) SetVersion(v *refs.Version) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Version = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetNodeInfo sets node info of response body.
|
|
|
|
func (m *LocalNodeInfoResponse_Body) SetNodeInfo(v *NodeInfo) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.NodeInfo = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *LocalNodeInfoResponse) SetBody(v *LocalNodeInfoResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
|
|
func (m *LocalNodeInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
|
|
func (m *LocalNodeInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-09-04 08:47:15 +00:00
|
|
|
}
|
2021-02-17 17:02:02 +00:00
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (x *NetworkInfoRequest) SetBody(v *NetworkInfoRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Body = v
|
2021-02-17 17:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
|
|
func (x *NetworkInfoRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.MetaHeader = v
|
2021-02-17 17:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
|
|
func (x *NetworkInfoRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.VerifyHeader = v
|
2021-02-17 17:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetNetworkInfo sets information about the network.
|
|
|
|
func (x *NetworkInfoResponse_Body) SetNetworkInfo(v *NetworkInfo) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.NetworkInfo = v
|
2021-02-17 17:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (x *NetworkInfoResponse) SetBody(v *NetworkInfoResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Body = v
|
2021-02-17 17:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
|
|
func (x *NetworkInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.MetaHeader = v
|
2021-02-17 17:02:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
|
|
func (x *NetworkInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.VerifyHeader = v
|
2021-02-17 17:02:02 +00:00
|
|
|
}
|
2022-09-17 09:59:54 +00:00
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (x *NetmapSnapshotRequest) SetBody(v *NetmapSnapshotRequest_Body) {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
|
|
func (x *NetmapSnapshotRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
|
|
|
x.MetaHeader = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
|
|
func (x *NetmapSnapshotRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
|
|
|
x.VerifyHeader = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetNetmap sets current Netmap.
|
|
|
|
func (x *NetmapSnapshotResponse_Body) SetNetmap(v *Netmap) {
|
|
|
|
x.Netmap = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (x *NetmapSnapshotResponse) SetBody(v *NetmapSnapshotResponse_Body) {
|
|
|
|
x.Body = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
|
|
func (x *NetmapSnapshotResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
|
|
|
x.MetaHeader = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
|
|
func (x *NetmapSnapshotResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
|
|
|
x.VerifyHeader = v
|
|
|
|
}
|