func (x *AnnounceIntermediateResultRequestBody) GetTrust() *PeerToPeerTrust {
	if x != nil {
		return x.trust
	}
	return nil
}
GetTrust returns current global trust value.
package reputation
import (
	"github.com/nspcc-dev/neofs-api-go/v2/refs"
	"github.com/nspcc-dev/neofs-api-go/v2/session"
)
type PeerID struct {
	publicKey []byte
}
func (x *PeerID) GetPublicKey() []byte {
	if x != nil {
		return x.publicKey
	}
	return nil
}
func (x *PeerID) SetPublicKey(v []byte) {
	if x != nil {
		x.publicKey = v
	}
}
type Trust struct {
	val float64
	peer *PeerID
}
func (x *Trust) GetPeer() *PeerID {
	if x != nil {
		return x.peer
	}
	return nil
}
func (x *Trust) SetPeer(v *PeerID) {
	if x != nil {
		x.peer = v
	}
}
func (x *Trust) GetValue() float64 {
	if x != nil {
		return x.val
	}
	return 0
}
func (x *Trust) SetValue(v float64) {
	if x != nil {
		x.val = v
	}
}
type PeerToPeerTrust struct {
	trusting *PeerID
	trust *Trust
}
func (x *PeerToPeerTrust) GetTrustingPeer() *PeerID {
	if x != nil {
		return x.trusting
	}
	return nil
}
func (x *PeerToPeerTrust) SetTrustingPeer(v *PeerID) {
	if x != nil {
		x.trusting = v
	}
}
func (x *PeerToPeerTrust) GetTrust() *Trust {
	if x != nil {
		return x.trust
	}
	return nil
}
func (x *PeerToPeerTrust) SetTrust(v *Trust) {
	if x != nil {
		x.trust = v
	}
}
type GlobalTrustBody struct {
	manager *PeerID
	trust *Trust
}
func (x *GlobalTrustBody) GetManager() *PeerID {
	if x != nil {
		return x.manager
	}
	return nil
}
func (x *GlobalTrustBody) SetManager(v *PeerID) {
	if x != nil {
		x.manager = v
	}
}
func (x *GlobalTrustBody) GetTrust() *Trust {
	if x != nil {
		return x.trust
	}
	return nil
}
func (x *GlobalTrustBody) SetTrust(v *Trust) {
	if x != nil {
		x.trust = v
	}
}
type GlobalTrust struct {
	version *refs.Version
	body *GlobalTrustBody
	sig *refs.Signature
}
func (x *GlobalTrust) GetVersion() *refs.Version {
	if x != nil {
		return x.version
	}
	return nil
}
func (x *GlobalTrust) SetVersion(v *refs.Version) {
	if x != nil {
		x.version = v
	}
}
func (x *GlobalTrust) GetBody() *GlobalTrustBody {
	if x != nil {
		return x.body
	}
	return nil
}
func (x *GlobalTrust) SetBody(v *GlobalTrustBody) {
	if x != nil {
		x.body = v
	}
}
func (x *GlobalTrust) GetSignature() *refs.Signature {
	if x != nil {
		return x.sig
	}
	return nil
}
func (x *GlobalTrust) SetSignature(v *refs.Signature) {
	if x != nil {
		x.sig = v
	}
}
type AnnounceLocalTrustRequestBody struct {
	epoch uint64
	trusts []*Trust
}
func (x *AnnounceLocalTrustRequestBody) GetEpoch() uint64 {
	if x != nil {
		return x.epoch
	}
	return 0
}
func (x *AnnounceLocalTrustRequestBody) SetEpoch(v uint64) {
	if x != nil {
		x.epoch = v
	}
}
func (x *AnnounceLocalTrustRequestBody) GetTrusts() []*Trust {
	if x != nil {
		return x.trusts
	}
	return nil
}
func (x *AnnounceLocalTrustRequestBody) SetTrusts(v []*Trust) {
	if x != nil {
		x.trusts = v
	}
}
type AnnounceLocalTrustResponseBody struct{}
type AnnounceLocalTrustRequest struct {
	body *AnnounceLocalTrustRequestBody
	session.RequestHeaders
}
func (x *AnnounceLocalTrustRequest) GetBody() *AnnounceLocalTrustRequestBody {
	if x != nil {
		return x.body
	}
	return nil
}
func (x *AnnounceLocalTrustRequest) SetBody(v *AnnounceLocalTrustRequestBody) {
	if x != nil {
		x.body = v
	}
}
type AnnounceLocalTrustResponse struct {
	body *AnnounceLocalTrustResponseBody
	session.ResponseHeaders
}
func (x *AnnounceLocalTrustResponse) GetBody() *AnnounceLocalTrustResponseBody {
	if x != nil {
		return x.body
	}
	return nil
}
func (x *AnnounceLocalTrustResponse) SetBody(v *AnnounceLocalTrustResponseBody) {
	if x != nil {
		x.body = v
	}
}
type AnnounceIntermediateResultRequestBody struct {
	epoch uint64
	iter uint32
	trust *PeerToPeerTrust
}
func (x *AnnounceIntermediateResultRequestBody) GetEpoch() uint64 {
	if x != nil {
		return x.epoch
	}
	return 0
}
func (x *AnnounceIntermediateResultRequestBody) SetEpoch(v uint64) {
	if x != nil {
		x.epoch = v
	}
}
func (x *AnnounceIntermediateResultRequestBody) GetIteration() uint32 {
	if x != nil {
		return x.iter
	}
	return 0
}
func (x *AnnounceIntermediateResultRequestBody) SetIteration(v uint32) {
	if x != nil {
		x.iter = v
	}
}