func GetObject(
	cli *client.Client,
	req *object.GetRequest,
	opts ...client.CallOption,
) (*GetResponseReader, error) {
	wc, err := client.OpenServerStream(cli, common.CallMethodInfoServerStream(serviceObject, rpcObjectGet), req, opts...)
	if err != nil {
		return nil, err
	}
	return &GetResponseReader{
		r: wc,
	}, nil
}
GetObject executes ObjectService.Get RPC.
package rpc
import (
	"github.com/nspcc-dev/neofs-api-go/rpc/client"
	"github.com/nspcc-dev/neofs-api-go/rpc/common"
	"github.com/nspcc-dev/neofs-api-go/rpc/message"
	"github.com/nspcc-dev/neofs-api-go/v2/object"
)
const serviceObject = serviceNamePrefix + "object.ObjectService"
const (
	rpcObjectPut    = "Put"
	rpcObjectGet    = "Get"
	rpcObjectSearch = "Search"
	rpcObjectRange  = "GetRange"
	rpcObjectHash   = "GetRangeHash"
	rpcObjectHead   = "Head"
	rpcObjectDelete = "Delete"
)
type PutRequestWriter struct {
	wc client.MessageWriterCloser
	resp message.Message
}
func (w *PutRequestWriter) Write(req *object.PutRequest) error {
	return w.wc.WriteMessage(req)
}
func (w *PutRequestWriter) Close() error {
	return w.wc.Close()
}
func PutObject(
	cli *client.Client,
	resp *object.PutResponse,
	opts ...client.CallOption,
) (*PutRequestWriter, error) {
	wc, err := client.OpenClientStream(cli, common.CallMethodInfoClientStream(serviceObject, rpcObjectPut), resp, opts...)
	if err != nil {
		return nil, err
	}
	return &PutRequestWriter{
		wc:   wc,
		resp: resp,
	}, nil
}
type GetResponseReader struct {
	r client.MessageReader
}
func (r *GetResponseReader) Read(resp *object.GetResponse) error {
	return r.r.ReadMessage(resp)
}