2020-08-13 12:43:47 +00:00
|
|
|
package accounting
|
2020-08-12 19:06:10 +00:00
|
|
|
|
|
|
|
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-08-12 19:06:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetOwnerId sets identifier of the account owner.
|
|
|
|
func (m *BalanceRequest_Body) SetOwnerId(v *refs.OwnerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.OwnerId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *BalanceRequest) SetBody(v *BalanceRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBalance sets balance value of the response.
|
|
|
|
func (m *BalanceResponse_Body) SetBalance(v *Decimal) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Balance = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *BalanceResponse) SetBody(v *BalanceResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *BalanceResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|