forked from TrueCloudLab/frostfs-api-go
Evgenii Stratonikov
0fe6b9adbb
This will make the transition to a new codegen more seamless. 1. Setter should be named as the field itself. 2. Setter should accept 1 parameter. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
105 lines
2.4 KiB
Go
105 lines
2.4 KiB
Go
package apemanager
|
|
|
|
import (
|
|
session_grpc "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session/grpc"
|
|
)
|
|
|
|
func (rb *AddChainRequest_Body) SetTarget(t *ChainTarget) {
|
|
rb.Target = t
|
|
}
|
|
|
|
func (rb *AddChainRequest_Body) SetChain(chain *Chain) {
|
|
rb.Chain = chain
|
|
}
|
|
|
|
func (r *AddChainRequest) SetBody(rb *AddChainRequest_Body) {
|
|
r.Body = rb
|
|
}
|
|
|
|
func (r *AddChainRequest) SetMetaHeader(mh *session_grpc.RequestMetaHeader) {
|
|
r.MetaHeader = mh
|
|
}
|
|
|
|
func (r *AddChainRequest) SetVerifyHeader(vh *session_grpc.RequestVerificationHeader) {
|
|
r.VerifyHeader = vh
|
|
}
|
|
|
|
func (rb *AddChainResponse_Body) SetChainId(chainID []byte) {
|
|
rb.ChainId = chainID
|
|
}
|
|
|
|
func (r *AddChainResponse) SetBody(rb *AddChainResponse_Body) {
|
|
r.Body = rb
|
|
}
|
|
|
|
func (r *AddChainResponse) SetMetaHeader(mh *session_grpc.ResponseMetaHeader) {
|
|
r.MetaHeader = mh
|
|
}
|
|
|
|
func (r *AddChainResponse) SetVerifyHeader(vh *session_grpc.ResponseVerificationHeader) {
|
|
r.VerifyHeader = vh
|
|
}
|
|
|
|
func (rb *RemoveChainRequest_Body) SetTarget(t *ChainTarget) {
|
|
rb.Target = t
|
|
}
|
|
|
|
func (rb *RemoveChainRequest_Body) SetChainId(chainID []byte) {
|
|
rb.ChainId = chainID
|
|
}
|
|
|
|
func (r *RemoveChainRequest) SetBody(rb *RemoveChainRequest_Body) {
|
|
r.Body = rb
|
|
}
|
|
|
|
func (r *RemoveChainRequest) SetMetaHeader(mh *session_grpc.RequestMetaHeader) {
|
|
r.MetaHeader = mh
|
|
}
|
|
|
|
func (r *RemoveChainRequest) SetVerifyHeader(vh *session_grpc.RequestVerificationHeader) {
|
|
r.VerifyHeader = vh
|
|
}
|
|
|
|
func (r *RemoveChainResponse) SetBody(rb *RemoveChainResponse_Body) {
|
|
r.Body = rb
|
|
}
|
|
|
|
func (r *RemoveChainResponse) SetMetaHeader(mh *session_grpc.ResponseMetaHeader) {
|
|
r.MetaHeader = mh
|
|
}
|
|
|
|
func (r *RemoveChainResponse) SetVerifyHeader(vh *session_grpc.ResponseVerificationHeader) {
|
|
r.VerifyHeader = vh
|
|
}
|
|
|
|
func (r *ListChainsRequest_Body) SetTarget(t *ChainTarget) {
|
|
r.Target = t
|
|
}
|
|
|
|
func (r *ListChainsRequest) SetBody(rb *ListChainsRequest_Body) {
|
|
r.Body = rb
|
|
}
|
|
|
|
func (r *ListChainsRequest) SetMetaHeader(mh *session_grpc.RequestMetaHeader) {
|
|
r.MetaHeader = mh
|
|
}
|
|
|
|
func (r *ListChainsRequest) SetVerifyHeader(vh *session_grpc.RequestVerificationHeader) {
|
|
r.VerifyHeader = vh
|
|
}
|
|
|
|
func (rb *ListChainsResponse_Body) SetChains(chains []*Chain) {
|
|
rb.Chains = chains
|
|
}
|
|
|
|
func (r *ListChainsResponse) SetBody(rb *ListChainsResponse_Body) {
|
|
r.Body = rb
|
|
}
|
|
|
|
func (r *ListChainsResponse) SetMetaHeader(mh *session_grpc.ResponseMetaHeader) {
|
|
r.MetaHeader = mh
|
|
}
|
|
|
|
func (r *ListChainsResponse) SetVerifyHeader(vh *session_grpc.ResponseVerificationHeader) {
|
|
r.VerifyHeader = vh
|
|
}
|