github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/netmap/grpc/service.go (about)

     1  package netmap
     2  
     3  import (
     4  	refs "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
     5  	session "github.com/TrueCloudLab/frostfs-api-go/v2/session/grpc"
     6  )
     7  
     8  // SetBody sets body of the request.
     9  func (m *LocalNodeInfoRequest) SetBody(v *LocalNodeInfoRequest_Body) {
    10  	m.Body = v
    11  }
    12  
    13  // SetMetaHeader sets meta header of the request.
    14  func (m *LocalNodeInfoRequest) SetMetaHeader(v *session.RequestMetaHeader) {
    15  	m.MetaHeader = v
    16  }
    17  
    18  // SetVerifyHeader sets verification header of the request.
    19  func (m *LocalNodeInfoRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
    20  	m.VerifyHeader = v
    21  }
    22  
    23  // SetVersion sets version of response body.
    24  func (m *LocalNodeInfoResponse_Body) SetVersion(v *refs.Version) {
    25  	m.Version = v
    26  }
    27  
    28  // SetNodeInfo sets node info of response body.
    29  func (m *LocalNodeInfoResponse_Body) SetNodeInfo(v *NodeInfo) {
    30  	m.NodeInfo = v
    31  }
    32  
    33  // SetBody sets body of the response.
    34  func (m *LocalNodeInfoResponse) SetBody(v *LocalNodeInfoResponse_Body) {
    35  	m.Body = v
    36  }
    37  
    38  // SetMetaHeader sets meta header of the response.
    39  func (m *LocalNodeInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
    40  	m.MetaHeader = v
    41  }
    42  
    43  // SetVerifyHeader sets verification header of the response.
    44  func (m *LocalNodeInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
    45  	m.VerifyHeader = v
    46  }
    47  
    48  // SetBody sets body of the request.
    49  func (x *NetworkInfoRequest) SetBody(v *NetworkInfoRequest_Body) {
    50  	x.Body = v
    51  }
    52  
    53  // SetMetaHeader sets meta header of the request.
    54  func (x *NetworkInfoRequest) SetMetaHeader(v *session.RequestMetaHeader) {
    55  	x.MetaHeader = v
    56  }
    57  
    58  // SetVerifyHeader sets verification header of the request.
    59  func (x *NetworkInfoRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
    60  	x.VerifyHeader = v
    61  }
    62  
    63  // SetNetworkInfo sets information about the network.
    64  func (x *NetworkInfoResponse_Body) SetNetworkInfo(v *NetworkInfo) {
    65  	x.NetworkInfo = v
    66  }
    67  
    68  // SetBody sets body of the response.
    69  func (x *NetworkInfoResponse) SetBody(v *NetworkInfoResponse_Body) {
    70  	x.Body = v
    71  }
    72  
    73  // SetMetaHeader sets meta header of the response.
    74  func (x *NetworkInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
    75  	x.MetaHeader = v
    76  }
    77  
    78  // SetVerifyHeader sets verification header of the response.
    79  func (x *NetworkInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
    80  	x.VerifyHeader = v
    81  }
    82  
    83  // SetBody sets body of the request.
    84  func (x *NetmapSnapshotRequest) SetBody(v *NetmapSnapshotRequest_Body) {
    85  	x.Body = v
    86  }
    87  
    88  // SetMetaHeader sets meta header of the request.
    89  func (x *NetmapSnapshotRequest) SetMetaHeader(v *session.RequestMetaHeader) {
    90  	x.MetaHeader = v
    91  }
    92  
    93  // SetVerifyHeader sets verification header of the request.
    94  func (x *NetmapSnapshotRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
    95  	x.VerifyHeader = v
    96  }
    97  
    98  // SetNetmap sets current Netmap.
    99  func (x *NetmapSnapshotResponse_Body) SetNetmap(v *Netmap) {
   100  	x.Netmap = v
   101  }
   102  
   103  // SetBody sets body of the response.
   104  func (x *NetmapSnapshotResponse) SetBody(v *NetmapSnapshotResponse_Body) {
   105  	x.Body = v
   106  }
   107  
   108  // SetMetaHeader sets meta header of the response.
   109  func (x *NetmapSnapshotResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
   110  	x.MetaHeader = v
   111  }
   112  
   113  // SetVerifyHeader sets verification header of the response.
   114  func (x *NetmapSnapshotResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
   115  	x.VerifyHeader = v
   116  }