2021-03-24 05:42:20 +00:00
|
|
|
package reputation
|
|
|
|
|
|
|
|
import (
|
2023-03-07 10:38:56 +00:00
|
|
|
session "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session/grpc"
|
2021-03-24 05:42:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetEpoch sets epoch in which the trust was assessed.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustRequest_Body) SetEpoch(v uint64) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Epoch = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetTrusts sets list of normalized trust values.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustRequest_Body) SetTrusts(v []*Trust) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Trusts = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustRequest) SetBody(v *AnnounceLocalTrustRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Body = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.MetaHeader = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.VerifyHeader = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustResponse) SetBody(v *AnnounceLocalTrustResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Body = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.MetaHeader = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceLocalTrustResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.VerifyHeader = v
|
2021-03-24 05:42:20 +00:00
|
|
|
}
|
2021-04-01 14:24:38 +00:00
|
|
|
|
2021-04-22 06:32:55 +00:00
|
|
|
// SetEpoch sets epoch in which the intermediate trust was assessed.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultRequest_Body) SetEpoch(v uint64) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Epoch = v
|
2021-04-22 06:32:55 +00:00
|
|
|
}
|
|
|
|
|
2021-04-01 14:24:38 +00:00
|
|
|
// SetIteration sets sequence number of the iteration.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultRequest_Body) SetIteration(v uint32) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Iteration = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetTrust sets current global trust value.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultRequest_Body) SetTrust(v *PeerToPeerTrust) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Trust = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultRequest) SetBody(v *AnnounceIntermediateResultRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Body = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.MetaHeader = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.VerifyHeader = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultResponse) SetBody(v *AnnounceIntermediateResultResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Body = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.MetaHeader = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2021-05-07 09:34:24 +00:00
|
|
|
func (x *AnnounceIntermediateResultResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.VerifyHeader = v
|
2021-04-01 14:24:38 +00:00
|
|
|
}
|