[#XX] container: Add ListStream method

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2024-10-28 18:00:34 +03:00
parent f0fc40e116
commit 5e0457290d
25 changed files with 5257 additions and 3577 deletions

View file

@ -101,6 +101,7 @@ func (x *BalanceRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.OwnerId != nil {
if !first {
out.RawByte(',')
} else {
@ -110,6 +111,7 @@ func (x *BalanceRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OwnerId.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -304,6 +306,7 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -313,7 +316,9 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -323,7 +328,9 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -333,6 +340,7 @@ func (x *BalanceRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -477,6 +485,7 @@ func (x *BalanceResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Balance != nil {
if !first {
out.RawByte(',')
} else {
@ -486,6 +495,7 @@ func (x *BalanceResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Balance.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -680,6 +690,7 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -689,7 +700,9 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -699,7 +712,9 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -709,6 +724,7 @@ func (x *BalanceResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}

View file

@ -117,6 +117,7 @@ func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Value != 0 {
if !first {
out.RawByte(',')
} else {
@ -128,7 +129,9 @@ func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendInt(out.Buffer.Buf, x.Value, 10)
out.RawByte('"')
}
}
{
if x.Precision != 0 {
if !first {
out.RawByte(',')
} else {
@ -138,6 +141,7 @@ func (x *Decimal) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Precision)
}
}
out.RawByte('}')
}

View file

@ -355,6 +355,7 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.HeaderType != 0 {
if !first {
out.RawByte(',')
} else {
@ -369,7 +370,9 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if x.MatchType != 0 {
if !first {
out.RawByte(',')
} else {
@ -384,7 +387,9 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -394,7 +399,9 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Key)
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -404,6 +411,7 @@ func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Value)
}
}
out.RawByte('}')
}
@ -600,6 +608,7 @@ func (x *EACLRecord_Target) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Role != 0 {
if !first {
out.RawByte(',')
} else {
@ -614,7 +623,9 @@ func (x *EACLRecord_Target) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if len(x.Keys) != 0 {
if !first {
out.RawByte(',')
} else {
@ -627,14 +638,11 @@ func (x *EACLRecord_Target) MarshalEasyJSON(out *jwriter.Writer) {
if i != 0 {
out.RawByte(',')
}
if x.Keys[i] != nil {
out.Base64Bytes(x.Keys[i])
} else {
out.String("")
}
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -691,13 +699,7 @@ func (x *EACLRecord_Target) UnmarshalEasyJSON(in *jlexer.Lexer) {
var list [][]byte
in.Delim('[')
for !in.IsDelim(']') {
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
list = append(list, f)
in.WantComma()
}
@ -868,6 +870,7 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Operation != 0 {
if !first {
out.RawByte(',')
} else {
@ -882,7 +885,9 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if x.Action != 0 {
if !first {
out.RawByte(',')
} else {
@ -897,7 +902,9 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if len(x.Filters) != 0 {
if !first {
out.RawByte(',')
} else {
@ -914,7 +921,9 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if len(x.Targets) != 0 {
if !first {
out.RawByte(',')
} else {
@ -931,6 +940,7 @@ func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -1175,6 +1185,7 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Version != nil {
if !first {
out.RawByte(',')
} else {
@ -1184,7 +1195,9 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Version.MarshalEasyJSON(out)
}
}
{
if x.ContainerId != nil {
if !first {
out.RawByte(',')
} else {
@ -1194,7 +1207,9 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ContainerId.MarshalEasyJSON(out)
}
}
{
if len(x.Records) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1211,6 +1226,7 @@ func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -1399,6 +1415,7 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Exp != 0 {
if !first {
out.RawByte(',')
} else {
@ -1410,7 +1427,9 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Exp, 10)
out.RawByte('"')
}
}
{
if x.Nbf != 0 {
if !first {
out.RawByte(',')
} else {
@ -1422,7 +1441,9 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Nbf, 10)
out.RawByte('"')
}
}
{
if x.Iat != 0 {
if !first {
out.RawByte(',')
} else {
@ -1434,6 +1455,7 @@ func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Iat, 10)
out.RawByte('"')
}
}
out.RawByte('}')
}
@ -1625,6 +1647,7 @@ func (x *BearerToken_Body_APEOverride) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Target != nil {
if !first {
out.RawByte(',')
} else {
@ -1634,7 +1657,9 @@ func (x *BearerToken_Body_APEOverride) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Target.MarshalEasyJSON(out)
}
}
{
if len(x.Chains) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1651,6 +1676,7 @@ func (x *BearerToken_Body_APEOverride) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -1884,6 +1910,7 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.EaclTable != nil {
if !first {
out.RawByte(',')
} else {
@ -1893,7 +1920,9 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.EaclTable.MarshalEasyJSON(out)
}
}
{
if x.OwnerId != nil {
if !first {
out.RawByte(',')
} else {
@ -1903,7 +1932,9 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OwnerId.MarshalEasyJSON(out)
}
}
{
if x.Lifetime != nil {
if !first {
out.RawByte(',')
} else {
@ -1913,7 +1944,9 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Lifetime.MarshalEasyJSON(out)
}
}
{
if x.AllowImpersonate {
if !first {
out.RawByte(',')
} else {
@ -1923,7 +1956,9 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Bool(x.AllowImpersonate)
}
}
{
if x.ApeOverride != nil {
if !first {
out.RawByte(',')
} else {
@ -1933,6 +1968,7 @@ func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ApeOverride.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -2113,6 +2149,7 @@ func (x *BearerToken) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -2122,7 +2159,9 @@ func (x *BearerToken) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.Signature != nil {
if !first {
out.RawByte(',')
} else {
@ -2132,6 +2171,7 @@ func (x *BearerToken) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Signature.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}

View file

@ -158,6 +158,7 @@ func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Type != 0 {
if !first {
out.RawByte(',')
} else {
@ -172,7 +173,9 @@ func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if len(x.Name) != 0 {
if !first {
out.RawByte(',')
} else {
@ -182,6 +185,7 @@ func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Name)
}
}
out.RawByte('}')
}
@ -354,6 +358,7 @@ func (x *Chain) MarshalEasyJSON(out *jwriter.Writer) {
switch xx := x.Kind.(type) {
case *Chain_Raw:
{
if len(xx.Raw) != 0 {
if !first {
out.RawByte(',')
} else {
@ -361,10 +366,7 @@ func (x *Chain) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"raw\":"
out.RawString(prefix)
if xx.Raw != nil {
out.Base64Bytes(xx.Raw)
} else {
out.String("")
}
}
}
@ -401,13 +403,7 @@ func (x *Chain) UnmarshalEasyJSON(in *jlexer.Lexer) {
x.Kind = xx
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
xx.Raw = f
}
}

View file

@ -124,6 +124,7 @@ func (x *AddChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Target != nil {
if !first {
out.RawByte(',')
} else {
@ -133,7 +134,9 @@ func (x *AddChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Target.MarshalEasyJSON(out)
}
}
{
if x.Chain != nil {
if !first {
out.RawByte(',')
} else {
@ -143,6 +146,7 @@ func (x *AddChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Chain.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -344,6 +348,7 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -353,7 +358,9 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -363,7 +370,9 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -373,6 +382,7 @@ func (x *AddChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -514,6 +524,7 @@ func (x *AddChainResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.ChainId) != 0 {
if !first {
out.RawByte(',')
} else {
@ -521,10 +532,7 @@ func (x *AddChainResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"chainId\":"
out.RawString(prefix)
if x.ChainId != nil {
out.Base64Bytes(x.ChainId)
} else {
out.String("")
}
}
out.RawByte('}')
@ -558,13 +566,7 @@ func (x *AddChainResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "chainId":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.ChainId = f
}
}
@ -726,6 +728,7 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -735,7 +738,9 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -745,7 +750,9 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -755,6 +762,7 @@ func (x *AddChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -919,6 +927,7 @@ func (x *RemoveChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Target != nil {
if !first {
out.RawByte(',')
} else {
@ -928,7 +937,9 @@ func (x *RemoveChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Target.MarshalEasyJSON(out)
}
}
{
if len(x.ChainId) != 0 {
if !first {
out.RawByte(',')
} else {
@ -936,10 +947,7 @@ func (x *RemoveChainRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"chainId\":"
out.RawString(prefix)
if x.ChainId != nil {
out.Base64Bytes(x.ChainId)
} else {
out.String("")
}
}
out.RawByte('}')
@ -980,13 +988,7 @@ func (x *RemoveChainRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "chainId":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.ChainId = f
}
}
@ -1148,6 +1150,7 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -1157,7 +1160,9 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1167,7 +1172,9 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1177,6 +1184,7 @@ func (x *RemoveChainRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1480,6 +1488,7 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -1489,7 +1498,9 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1499,7 +1510,9 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1509,6 +1522,7 @@ func (x *RemoveChainResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1653,6 +1667,7 @@ func (x *ListChainsRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Target != nil {
if !first {
out.RawByte(',')
} else {
@ -1662,6 +1677,7 @@ func (x *ListChainsRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Target.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1856,6 +1872,7 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -1865,7 +1882,9 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1875,7 +1894,9 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1885,6 +1906,7 @@ func (x *ListChainsRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -2032,6 +2054,7 @@ func (x *ListChainsResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Chains) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2048,6 +2071,7 @@ func (x *ListChainsResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -2249,6 +2273,7 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -2258,7 +2283,9 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -2268,7 +2295,9 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -2278,6 +2307,7 @@ func (x *ListChainsResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}

View file

@ -762,3 +762,138 @@ func (r *ListResponse) FromGRPCMessage(m grpc.Message) error {
return r.ResponseHeaders.FromMessage(v)
}
func (r *ListStreamRequestBody) ToGRPCMessage() grpc.Message {
var m *container.ListStreamRequest_Body
if r != nil {
m = new(container.ListStreamRequest_Body)
m.SetOwnerId(r.ownerID.ToGRPCMessage().(*refsGRPC.OwnerID))
}
return m
}
func (r *ListStreamRequestBody) FromGRPCMessage(m grpc.Message) error {
v, ok := m.(*container.ListStreamRequest_Body)
if !ok {
return message.NewUnexpectedMessageType(m, v)
}
var err error
ownerID := v.GetOwnerId()
if ownerID == nil {
r.ownerID = nil
} else {
if r.ownerID == nil {
r.ownerID = new(refs.OwnerID)
}
err = r.ownerID.FromGRPCMessage(ownerID)
}
return err
}
func (r *ListStreamRequest) ToGRPCMessage() grpc.Message {
var m *container.ListStreamRequest
if r != nil {
m = new(container.ListStreamRequest)
m.SetBody(r.body.ToGRPCMessage().(*container.ListStreamRequest_Body))
r.RequestHeaders.ToMessage(m)
}
return m
}
func (r *ListStreamRequest) FromGRPCMessage(m grpc.Message) error {
v, ok := m.(*container.ListStreamRequest)
if !ok {
return message.NewUnexpectedMessageType(m, v)
}
var err error
body := v.GetBody()
if body == nil {
r.body = nil
} else {
if r.body == nil {
r.body = new(ListStreamRequestBody)
}
err = r.body.FromGRPCMessage(body)
if err != nil {
return err
}
}
return r.RequestHeaders.FromMessage(v)
}
func (r *ListStreamResponseBody) ToGRPCMessage() grpc.Message {
var m *container.ListStreamResponse_Body
if r != nil {
m = new(container.ListStreamResponse_Body)
m.SetContainerIds(refs.ContainerIDsToGRPCMessage(r.cidList))
}
return m
}
func (r *ListStreamResponseBody) FromGRPCMessage(m grpc.Message) error {
v, ok := m.(*container.ListStreamResponse_Body)
if !ok {
return message.NewUnexpectedMessageType(m, v)
}
var err error
r.cidList, err = refs.ContainerIDsFromGRPCMessage(v.GetContainerIds())
return err
}
func (r *ListStreamResponse) ToGRPCMessage() grpc.Message {
var m *container.ListStreamResponse
if r != nil {
m = new(container.ListStreamResponse)
m.SetBody(r.body.ToGRPCMessage().(*container.ListStreamResponse_Body))
r.ResponseHeaders.ToMessage(m)
}
return m
}
func (r *ListStreamResponse) FromGRPCMessage(m grpc.Message) error {
v, ok := m.(*container.ListStreamResponse)
if !ok {
return message.NewUnexpectedMessageType(m, v)
}
var err error
body := v.GetBody()
if body == nil {
r.body = nil
} else {
if r.body == nil {
r.body = new(ListStreamResponseBody)
}
err = r.body.FromGRPCMessage(body)
if err != nil {
return err
}
}
return r.ResponseHeaders.FromMessage(v)
}

File diff suppressed because it is too large Load diff

View file

@ -157,3 +157,41 @@ func DoFuzzJSONListResponse(data []byte) int {
}
return 1
}
func DoFuzzProtoListStreamRequest(data []byte) int {
msg := new(ListStreamRequest)
if err := msg.UnmarshalProtobuf(data); err != nil {
return 0
}
_ = msg.MarshalProtobuf(nil)
return 1
}
func DoFuzzJSONListStreamRequest(data []byte) int {
msg := new(ListStreamRequest)
if err := msg.UnmarshalJSON(data); err != nil {
return 0
}
_, err := msg.MarshalJSON()
if err != nil {
panic(err)
}
return 1
}
func DoFuzzProtoListStreamResponse(data []byte) int {
msg := new(ListStreamResponse)
if err := msg.UnmarshalProtobuf(data); err != nil {
return 0
}
_ = msg.MarshalProtobuf(nil)
return 1
}
func DoFuzzJSONListStreamResponse(data []byte) int {
msg := new(ListStreamResponse)
if err := msg.UnmarshalJSON(data); err != nil {
return 0
}
_, err := msg.MarshalJSON()
if err != nil {
panic(err)
}
return 1
}

View file

@ -89,3 +89,23 @@ func FuzzJSONListResponse(f *testing.F) {
DoFuzzJSONListResponse(data)
})
}
func FuzzProtoListStreamRequest(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
DoFuzzProtoListStreamRequest(data)
})
}
func FuzzJSONListStreamRequest(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
DoFuzzJSONListStreamRequest(data)
})
}
func FuzzProtoListStreamResponse(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
DoFuzzProtoListStreamResponse(data)
})
}
func FuzzJSONListStreamResponse(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
DoFuzzJSONListStreamResponse(data)
})
}

View file

@ -23,6 +23,7 @@ const (
ContainerService_Delete_FullMethodName = "/neo.fs.v2.container.ContainerService/Delete"
ContainerService_Get_FullMethodName = "/neo.fs.v2.container.ContainerService/Get"
ContainerService_List_FullMethodName = "/neo.fs.v2.container.ContainerService/List"
ContainerService_ListStream_FullMethodName = "/neo.fs.v2.container.ContainerService/ListStream"
)
// ContainerServiceClient is the client API for ContainerService service.
@ -73,6 +74,16 @@ type ContainerServiceClient interface {
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container list access denied.
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
// Returns all owner's containers from 'Container` smart contract' storage
// via stream.
//
// Statuses:
// - **OK** (0, SECTION_SUCCESS): \
// container list has been successfully read;
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container list access denied.
ListStream(ctx context.Context, in *ListStreamRequest, opts ...grpc.CallOption) (ContainerService_ListStreamClient, error)
}
type containerServiceClient struct {
@ -119,6 +130,38 @@ func (c *containerServiceClient) List(ctx context.Context, in *ListRequest, opts
return out, nil
}
func (c *containerServiceClient) ListStream(ctx context.Context, in *ListStreamRequest, opts ...grpc.CallOption) (ContainerService_ListStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &ContainerService_ServiceDesc.Streams[0], ContainerService_ListStream_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &containerServiceListStreamClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type ContainerService_ListStreamClient interface {
Recv() (*ListStreamResponse, error)
grpc.ClientStream
}
type containerServiceListStreamClient struct {
grpc.ClientStream
}
func (x *containerServiceListStreamClient) Recv() (*ListStreamResponse, error) {
m := new(ListStreamResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// ContainerServiceServer is the server API for ContainerService service.
// All implementations should embed UnimplementedContainerServiceServer
// for forward compatibility
@ -167,6 +210,16 @@ type ContainerServiceServer interface {
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container list access denied.
List(context.Context, *ListRequest) (*ListResponse, error)
// Returns all owner's containers from 'Container` smart contract' storage
// via stream.
//
// Statuses:
// - **OK** (0, SECTION_SUCCESS): \
// container list has been successfully read;
// - Common failures (SECTION_FAILURE_COMMON);
// - **CONTAINER_ACCESS_DENIED** (3074, SECTION_CONTAINER): \
// container list access denied.
ListStream(*ListStreamRequest, ContainerService_ListStreamServer) error
}
// UnimplementedContainerServiceServer should be embedded to have forward compatible implementations.
@ -185,6 +238,9 @@ func (UnimplementedContainerServiceServer) Get(context.Context, *GetRequest) (*G
func (UnimplementedContainerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (UnimplementedContainerServiceServer) ListStream(*ListStreamRequest, ContainerService_ListStreamServer) error {
return status.Errorf(codes.Unimplemented, "method ListStream not implemented")
}
// UnsafeContainerServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ContainerServiceServer will
@ -269,6 +325,27 @@ func _ContainerService_List_Handler(srv interface{}, ctx context.Context, dec fu
return interceptor(ctx, in, info, handler)
}
func _ContainerService_ListStream_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ListStreamRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ContainerServiceServer).ListStream(m, &containerServiceListStreamServer{stream})
}
type ContainerService_ListStreamServer interface {
Send(*ListStreamResponse) error
grpc.ServerStream
}
type containerServiceListStreamServer struct {
grpc.ServerStream
}
func (x *containerServiceListStreamServer) Send(m *ListStreamResponse) error {
return x.ServerStream.SendMsg(m)
}
// ContainerService_ServiceDesc is the grpc.ServiceDesc for ContainerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@ -293,6 +370,12 @@ var ContainerService_ServiceDesc = grpc.ServiceDesc{
Handler: _ContainerService_List_Handler,
},
},
Streams: []grpc.StreamDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "ListStream",
Handler: _ContainerService_ListStream_Handler,
ServerStreams: true,
},
},
Metadata: "container/grpc/service.proto",
}

View file

@ -119,6 +119,7 @@ func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -128,7 +129,9 @@ func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Key)
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -138,6 +141,7 @@ func (x *Container_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Value)
}
}
out.RawByte('}')
}
@ -385,6 +389,7 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Version != nil {
if !first {
out.RawByte(',')
} else {
@ -394,7 +399,9 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Version.MarshalEasyJSON(out)
}
}
{
if x.OwnerId != nil {
if !first {
out.RawByte(',')
} else {
@ -404,7 +411,9 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OwnerId.MarshalEasyJSON(out)
}
}
{
if len(x.Nonce) != 0 {
if !first {
out.RawByte(',')
} else {
@ -412,13 +421,11 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"nonce\":"
out.RawString(prefix)
if x.Nonce != nil {
out.Base64Bytes(x.Nonce)
} else {
out.String("")
}
}
{
if x.BasicAcl != 0 {
if !first {
out.RawByte(',')
} else {
@ -428,7 +435,9 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.BasicAcl)
}
}
{
if len(x.Attributes) != 0 {
if !first {
out.RawByte(',')
} else {
@ -445,7 +454,9 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if x.PlacementPolicy != nil {
if !first {
out.RawByte(',')
} else {
@ -455,6 +466,7 @@ func (x *Container) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.PlacementPolicy.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -500,13 +512,7 @@ func (x *Container) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "nonce":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Nonce = f
}
case "basicACL":

View file

@ -343,3 +343,65 @@ func (r *ListResponseBody) StableSize() (size int) {
func (r *ListResponseBody) Unmarshal(data []byte) error {
return message.Unmarshal(r, data, new(container.ListResponse_Body))
}
func (r *ListStreamRequestBody) StableMarshal(buf []byte) []byte {
if r == nil {
return []byte{}
}
if buf == nil {
buf = make([]byte, r.StableSize())
}
protoutil.NestedStructureMarshal(listReqBodyOwnerField, buf, r.ownerID)
return buf
}
func (r *ListStreamRequestBody) StableSize() (size int) {
if r == nil {
return 0
}
size += protoutil.NestedStructureSize(listReqBodyOwnerField, r.ownerID)
return size
}
func (r *ListStreamRequestBody) Unmarshal(data []byte) error {
return message.Unmarshal(r, data, new(container.ListStreamRequest_Body))
}
func (r *ListStreamResponseBody) StableMarshal(buf []byte) []byte {
if r == nil {
return []byte{}
}
if buf == nil {
buf = make([]byte, r.StableSize())
}
var offset int
for i := range r.cidList {
offset += protoutil.NestedStructureMarshal(listRespBodyIDsField, buf[offset:], &r.cidList[i])
}
return buf
}
func (r *ListStreamResponseBody) StableSize() (size int) {
if r == nil {
return 0
}
for i := range r.cidList {
size += protoutil.NestedStructureSize(listRespBodyIDsField, &r.cidList[i])
}
return size
}
func (r *ListStreamResponseBody) Unmarshal(data []byte) error {
return message.Unmarshal(r, data, new(container.ListStreamResponse_Body))
}

View file

@ -109,6 +109,26 @@ type ListResponse struct {
session.ResponseHeaders
}
type ListStreamRequestBody struct {
ownerID *refs.OwnerID
}
type ListStreamRequest struct {
body *ListStreamRequestBody
session.RequestHeaders
}
type ListStreamResponseBody struct {
cidList []refs.ContainerID
}
type ListStreamResponse struct {
body *ListStreamResponseBody
session.ResponseHeaders
}
func (a *Attribute) GetKey() string {
if a != nil {
return a.key
@ -444,3 +464,51 @@ func (r *ListResponse) GetBody() *ListResponseBody {
func (r *ListResponse) SetBody(v *ListResponseBody) {
r.body = v
}
func (r *ListStreamRequestBody) GetOwnerID() *refs.OwnerID {
if r != nil {
return r.ownerID
}
return nil
}
func (r *ListStreamRequestBody) SetOwnerID(v *refs.OwnerID) {
r.ownerID = v
}
func (r *ListStreamRequest) GetBody() *ListStreamRequestBody {
if r != nil {
return r.body
}
return nil
}
func (r *ListStreamRequest) SetBody(v *ListStreamRequestBody) {
r.body = v
}
func (r *ListStreamResponseBody) GetContainerIDs() []refs.ContainerID {
if r != nil {
return r.cidList
}
return nil
}
func (r *ListStreamResponseBody) SetContainerIDs(v []refs.ContainerID) {
r.cidList = v
}
func (r *ListStreamResponse) GetBody() *ListStreamResponseBody {
if r != nil {
return r.body
}
return nil
}
func (r *ListStreamResponse) SetBody(v *ListStreamResponseBody) {
r.body = v
}

View file

@ -103,6 +103,7 @@ func (x *Lock) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Members) != 0 {
if !first {
out.RawByte(',')
} else {
@ -119,6 +120,7 @@ func (x *Lock) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}

View file

@ -260,6 +260,7 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -269,7 +270,9 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -279,7 +282,9 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -289,6 +294,7 @@ func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -456,6 +462,7 @@ func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Version != nil {
if !first {
out.RawByte(',')
} else {
@ -465,7 +472,9 @@ func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Version.MarshalEasyJSON(out)
}
}
{
if x.NodeInfo != nil {
if !first {
out.RawByte(',')
} else {
@ -475,6 +484,7 @@ func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.NodeInfo.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -676,6 +686,7 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -685,7 +696,9 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -695,7 +708,9 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -705,6 +720,7 @@ func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1008,6 +1024,7 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -1017,7 +1034,9 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1027,7 +1046,9 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1037,6 +1058,7 @@ func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1181,6 +1203,7 @@ func (x *NetworkInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.NetworkInfo != nil {
if !first {
out.RawByte(',')
} else {
@ -1190,6 +1213,7 @@ func (x *NetworkInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.NetworkInfo.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1384,6 +1408,7 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -1393,7 +1418,9 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1403,7 +1430,9 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1413,6 +1442,7 @@ func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1716,6 +1746,7 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -1725,7 +1756,9 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1735,7 +1768,9 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -1745,6 +1780,7 @@ func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1889,6 +1925,7 @@ func (x *NetmapSnapshotResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Netmap != nil {
if !first {
out.RawByte(',')
} else {
@ -1898,6 +1935,7 @@ func (x *NetmapSnapshotResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Netmap.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -2092,6 +2130,7 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -2101,7 +2140,9 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -2111,7 +2152,9 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -2121,6 +2164,7 @@ func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}

View file

@ -277,6 +277,7 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Name) != 0 {
if !first {
out.RawByte(',')
} else {
@ -286,7 +287,9 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Name)
}
}
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -296,7 +299,9 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Key)
}
}
{
if x.Op != 0 {
if !first {
out.RawByte(',')
} else {
@ -311,7 +316,9 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -321,7 +328,9 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Value)
}
}
{
if len(x.Filters) != 0 {
if !first {
out.RawByte(',')
} else {
@ -338,6 +347,7 @@ func (x *Filter) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -592,6 +602,7 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Name) != 0 {
if !first {
out.RawByte(',')
} else {
@ -601,7 +612,9 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Name)
}
}
{
if x.Count != 0 {
if !first {
out.RawByte(',')
} else {
@ -611,7 +624,9 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Count)
}
}
{
if x.Clause != 0 {
if !first {
out.RawByte(',')
} else {
@ -626,7 +641,9 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if len(x.Attribute) != 0 {
if !first {
out.RawByte(',')
} else {
@ -636,7 +653,9 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Attribute)
}
}
{
if len(x.Filter) != 0 {
if !first {
out.RawByte(',')
} else {
@ -646,6 +665,7 @@ func (x *Selector) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Filter)
}
}
out.RawByte('}')
}
@ -880,6 +900,7 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Count != 0 {
if !first {
out.RawByte(',')
} else {
@ -889,7 +910,9 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Count)
}
}
{
if len(x.Selector) != 0 {
if !first {
out.RawByte(',')
} else {
@ -899,7 +922,9 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Selector)
}
}
{
if x.EcDataCount != 0 {
if !first {
out.RawByte(',')
} else {
@ -909,7 +934,9 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.EcDataCount)
}
}
{
if x.EcParityCount != 0 {
if !first {
out.RawByte(',')
} else {
@ -919,6 +946,7 @@ func (x *Replica) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.EcParityCount)
}
}
out.RawByte('}')
}
@ -1185,6 +1213,7 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Replicas) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1201,7 +1230,9 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if x.ContainerBackupFactor != 0 {
if !first {
out.RawByte(',')
} else {
@ -1211,7 +1242,9 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.ContainerBackupFactor)
}
}
{
if len(x.Selectors) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1228,7 +1261,9 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if len(x.Filters) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1245,7 +1280,9 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if x.Unique {
if !first {
out.RawByte(',')
} else {
@ -1255,6 +1292,7 @@ func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Bool(x.Unique)
}
}
out.RawByte('}')
}
@ -1515,6 +1553,7 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1524,7 +1563,9 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Key)
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1534,7 +1575,9 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Value)
}
}
{
if len(x.Parents) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1551,6 +1594,7 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -1762,6 +1806,7 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.PublicKey) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1769,13 +1814,11 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"publicKey\":"
out.RawString(prefix)
if x.PublicKey != nil {
out.Base64Bytes(x.PublicKey)
} else {
out.String("")
}
}
{
if len(x.Addresses) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1792,7 +1835,9 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if len(x.Attributes) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1809,7 +1854,9 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if x.State != 0 {
if !first {
out.RawByte(',')
} else {
@ -1824,6 +1871,7 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
out.RawByte('}')
}
@ -1855,13 +1903,7 @@ func (x *NodeInfo) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "publicKey":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.PublicKey = f
}
case "addresses":
@ -2031,6 +2073,7 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Epoch != 0 {
if !first {
out.RawByte(',')
} else {
@ -2042,7 +2085,9 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
out.RawByte('"')
}
}
{
if len(x.Nodes) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2059,6 +2104,7 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -2227,6 +2273,7 @@ func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2234,13 +2281,11 @@ func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"key\":"
out.RawString(prefix)
if x.Key != nil {
out.Base64Bytes(x.Key)
} else {
out.String("")
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2248,10 +2293,7 @@ func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"value\":"
out.RawString(prefix)
if x.Value != nil {
out.Base64Bytes(x.Value)
} else {
out.String("")
}
}
out.RawByte('}')
@ -2285,25 +2327,13 @@ func (x *NetworkConfig_Parameter) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "key":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Key = f
}
case "value":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Value = f
}
}
@ -2404,6 +2434,7 @@ func (x *NetworkConfig) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Parameters) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2420,6 +2451,7 @@ func (x *NetworkConfig) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -2617,6 +2649,7 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.CurrentEpoch != 0 {
if !first {
out.RawByte(',')
} else {
@ -2628,7 +2661,9 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.CurrentEpoch, 10)
out.RawByte('"')
}
}
{
if x.MagicNumber != 0 {
if !first {
out.RawByte(',')
} else {
@ -2640,7 +2675,9 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.MagicNumber, 10)
out.RawByte('"')
}
}
{
if x.MsPerBlock != 0 {
if !first {
out.RawByte(',')
} else {
@ -2652,7 +2689,9 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendInt(out.Buffer.Buf, x.MsPerBlock, 10)
out.RawByte('"')
}
}
{
if x.NetworkConfig != nil {
if !first {
out.RawByte(',')
} else {
@ -2662,6 +2701,7 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.NetworkConfig.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}

File diff suppressed because it is too large Load diff

View file

@ -307,6 +307,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Version != nil {
if !first {
out.RawByte(',')
} else {
@ -316,7 +317,9 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Version.MarshalEasyJSON(out)
}
}
{
if x.CreationEpoch != 0 {
if !first {
out.RawByte(',')
} else {
@ -328,7 +331,9 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.CreationEpoch, 10)
out.RawByte('"')
}
}
{
if x.OwnerId != nil {
if !first {
out.RawByte(',')
} else {
@ -338,7 +343,9 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OwnerId.MarshalEasyJSON(out)
}
}
{
if x.ObjectType != 0 {
if !first {
out.RawByte(',')
} else {
@ -353,7 +360,9 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if x.PayloadLength != 0 {
if !first {
out.RawByte(',')
} else {
@ -365,7 +374,9 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.PayloadLength, 10)
out.RawByte('"')
}
}
{
if x.PayloadHash != nil {
if !first {
out.RawByte(',')
} else {
@ -375,7 +386,9 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.PayloadHash.MarshalEasyJSON(out)
}
}
{
if x.HomomorphicHash != nil {
if !first {
out.RawByte(',')
} else {
@ -385,6 +398,7 @@ func (x *ShortHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.HomomorphicHash.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -603,6 +617,7 @@ func (x *Header_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -612,7 +627,9 @@ func (x *Header_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Key)
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -622,6 +639,7 @@ func (x *Header_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Value)
}
}
out.RawByte('}')
}
@ -872,6 +890,7 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Parent != nil {
if !first {
out.RawByte(',')
} else {
@ -881,7 +900,9 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Parent.MarshalEasyJSON(out)
}
}
{
if x.Previous != nil {
if !first {
out.RawByte(',')
} else {
@ -891,7 +912,9 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Previous.MarshalEasyJSON(out)
}
}
{
if x.ParentSignature != nil {
if !first {
out.RawByte(',')
} else {
@ -901,7 +924,9 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ParentSignature.MarshalEasyJSON(out)
}
}
{
if x.ParentHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -911,7 +936,9 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ParentHeader.MarshalEasyJSON(out)
}
}
{
if len(x.Children) != 0 {
if !first {
out.RawByte(',')
} else {
@ -928,7 +955,9 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if len(x.SplitId) != 0 {
if !first {
out.RawByte(',')
} else {
@ -936,10 +965,7 @@ func (x *Header_Split) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"splitID\":"
out.RawString(prefix)
if x.SplitId != nil {
out.Base64Bytes(x.SplitId)
} else {
out.String("")
}
}
out.RawByte('}')
@ -1015,13 +1041,7 @@ func (x *Header_Split) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "splitID":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.SplitId = f
}
}
@ -1268,6 +1288,7 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Parent != nil {
if !first {
out.RawByte(',')
} else {
@ -1277,7 +1298,9 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Parent.MarshalEasyJSON(out)
}
}
{
if x.Index != 0 {
if !first {
out.RawByte(',')
} else {
@ -1287,7 +1310,9 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Index)
}
}
{
if x.Total != 0 {
if !first {
out.RawByte(',')
} else {
@ -1297,7 +1322,9 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Total)
}
}
{
if x.HeaderLength != 0 {
if !first {
out.RawByte(',')
} else {
@ -1307,7 +1334,9 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.HeaderLength)
}
}
{
if len(x.Header) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1315,13 +1344,11 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"header\":"
out.RawString(prefix)
if x.Header != nil {
out.Base64Bytes(x.Header)
} else {
out.String("")
}
}
{
if len(x.ParentSplitId) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1329,13 +1356,11 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"parentSplitID\":"
out.RawString(prefix)
if x.ParentSplitId != nil {
out.Base64Bytes(x.ParentSplitId)
} else {
out.String("")
}
}
{
if x.ParentSplitParentId != nil {
if !first {
out.RawByte(',')
} else {
@ -1345,7 +1370,9 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ParentSplitParentId.MarshalEasyJSON(out)
}
}
{
if len(x.ParentAttributes) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1362,6 +1389,7 @@ func (x *Header_EC) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -1442,25 +1470,13 @@ func (x *Header_EC) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "header":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Header = f
}
case "parentSplitID":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.ParentSplitId = f
}
case "parentSplitParentID":
@ -1826,6 +1842,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Version != nil {
if !first {
out.RawByte(',')
} else {
@ -1835,7 +1852,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Version.MarshalEasyJSON(out)
}
}
{
if x.ContainerId != nil {
if !first {
out.RawByte(',')
} else {
@ -1845,7 +1864,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ContainerId.MarshalEasyJSON(out)
}
}
{
if x.OwnerId != nil {
if !first {
out.RawByte(',')
} else {
@ -1855,7 +1876,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OwnerId.MarshalEasyJSON(out)
}
}
{
if x.CreationEpoch != 0 {
if !first {
out.RawByte(',')
} else {
@ -1867,7 +1890,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.CreationEpoch, 10)
out.RawByte('"')
}
}
{
if x.PayloadLength != 0 {
if !first {
out.RawByte(',')
} else {
@ -1879,7 +1904,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.PayloadLength, 10)
out.RawByte('"')
}
}
{
if x.PayloadHash != nil {
if !first {
out.RawByte(',')
} else {
@ -1889,7 +1916,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.PayloadHash.MarshalEasyJSON(out)
}
}
{
if x.ObjectType != 0 {
if !first {
out.RawByte(',')
} else {
@ -1904,7 +1933,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if x.HomomorphicHash != nil {
if !first {
out.RawByte(',')
} else {
@ -1914,7 +1945,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.HomomorphicHash.MarshalEasyJSON(out)
}
}
{
if x.SessionToken != nil {
if !first {
out.RawByte(',')
} else {
@ -1924,7 +1957,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.SessionToken.MarshalEasyJSON(out)
}
}
{
if len(x.Attributes) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1941,7 +1976,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if x.Split != nil {
if !first {
out.RawByte(',')
} else {
@ -1951,7 +1988,9 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Split.MarshalEasyJSON(out)
}
}
{
if x.Ec != nil {
if !first {
out.RawByte(',')
} else {
@ -1961,6 +2000,7 @@ func (x *Header) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Ec.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -2270,6 +2310,7 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.ObjectId != nil {
if !first {
out.RawByte(',')
} else {
@ -2279,7 +2320,9 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ObjectId.MarshalEasyJSON(out)
}
}
{
if x.Signature != nil {
if !first {
out.RawByte(',')
} else {
@ -2289,7 +2332,9 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Signature.MarshalEasyJSON(out)
}
}
{
if x.Header != nil {
if !first {
out.RawByte(',')
} else {
@ -2299,7 +2344,9 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Header.MarshalEasyJSON(out)
}
}
{
if len(x.Payload) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2307,10 +2354,7 @@ func (x *Object) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"payload\":"
out.RawString(prefix)
if x.Payload != nil {
out.Base64Bytes(x.Payload)
} else {
out.String("")
}
}
out.RawByte('}')
@ -2365,13 +2409,7 @@ func (x *Object) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "payload":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Payload = f
}
}
@ -2512,6 +2550,7 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.SplitId) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2519,13 +2558,11 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"splitId\":"
out.RawString(prefix)
if x.SplitId != nil {
out.Base64Bytes(x.SplitId)
} else {
out.String("")
}
}
{
if x.LastPart != nil {
if !first {
out.RawByte(',')
} else {
@ -2535,7 +2572,9 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.LastPart.MarshalEasyJSON(out)
}
}
{
if x.Link != nil {
if !first {
out.RawByte(',')
} else {
@ -2545,6 +2584,7 @@ func (x *SplitInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Link.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -2576,13 +2616,7 @@ func (x *SplitInfo) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "splitId":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.SplitId = f
}
case "lastPart":
@ -2734,6 +2768,7 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Id != nil {
if !first {
out.RawByte(',')
} else {
@ -2743,7 +2778,9 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Id.MarshalEasyJSON(out)
}
}
{
if x.Index != 0 {
if !first {
out.RawByte(',')
} else {
@ -2753,7 +2790,9 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Index)
}
}
{
if x.Total != 0 {
if !first {
out.RawByte(',')
} else {
@ -2763,6 +2802,7 @@ func (x *ECInfo_Chunk) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Total)
}
}
out.RawByte('}')
}
@ -2924,6 +2964,7 @@ func (x *ECInfo) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Chunks) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2940,6 +2981,7 @@ func (x *ECInfo) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}

View file

@ -193,6 +193,7 @@ func (x *Address) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.ContainerId != nil {
if !first {
out.RawByte(',')
} else {
@ -202,7 +203,9 @@ func (x *Address) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ContainerId.MarshalEasyJSON(out)
}
}
{
if x.ObjectId != nil {
if !first {
out.RawByte(',')
} else {
@ -212,6 +215,7 @@ func (x *Address) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ObjectId.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -346,6 +350,7 @@ func (x *ObjectID) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -353,10 +358,7 @@ func (x *ObjectID) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"value\":"
out.RawString(prefix)
if x.Value != nil {
out.Base64Bytes(x.Value)
} else {
out.String("")
}
}
out.RawByte('}')
@ -390,13 +392,7 @@ func (x *ObjectID) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "value":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Value = f
}
}
@ -491,6 +487,7 @@ func (x *ContainerID) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -498,10 +495,7 @@ func (x *ContainerID) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"value\":"
out.RawString(prefix)
if x.Value != nil {
out.Base64Bytes(x.Value)
} else {
out.String("")
}
}
out.RawByte('}')
@ -535,13 +529,7 @@ func (x *ContainerID) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "value":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Value = f
}
}
@ -636,6 +624,7 @@ func (x *OwnerID) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -643,10 +632,7 @@ func (x *OwnerID) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"value\":"
out.RawString(prefix)
if x.Value != nil {
out.Base64Bytes(x.Value)
} else {
out.String("")
}
}
out.RawByte('}')
@ -680,13 +666,7 @@ func (x *OwnerID) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "value":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Value = f
}
}
@ -801,6 +781,7 @@ func (x *Version) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Major != 0 {
if !first {
out.RawByte(',')
} else {
@ -810,7 +791,9 @@ func (x *Version) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Major)
}
}
{
if x.Minor != 0 {
if !first {
out.RawByte(',')
} else {
@ -820,6 +803,7 @@ func (x *Version) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Minor)
}
}
out.RawByte('}')
}
@ -1008,6 +992,7 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1015,13 +1000,11 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"key\":"
out.RawString(prefix)
if x.Key != nil {
out.Base64Bytes(x.Key)
} else {
out.String("")
}
}
{
if len(x.Sign) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1029,13 +1012,11 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"signature\":"
out.RawString(prefix)
if x.Sign != nil {
out.Base64Bytes(x.Sign)
} else {
out.String("")
}
}
{
if x.Scheme != 0 {
if !first {
out.RawByte(',')
} else {
@ -1050,6 +1031,7 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
out.RawByte('}')
}
@ -1081,25 +1063,13 @@ func (x *Signature) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "key":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Key = f
}
case "signature":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Sign = f
}
case "scheme":
@ -1236,6 +1206,7 @@ func (x *SignatureRFC6979) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1243,13 +1214,11 @@ func (x *SignatureRFC6979) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"key\":"
out.RawString(prefix)
if x.Key != nil {
out.Base64Bytes(x.Key)
} else {
out.String("")
}
}
{
if len(x.Sign) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1257,10 +1226,7 @@ func (x *SignatureRFC6979) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"signature\":"
out.RawString(prefix)
if x.Sign != nil {
out.Base64Bytes(x.Sign)
} else {
out.String("")
}
}
out.RawByte('}')
@ -1294,25 +1260,13 @@ func (x *SignatureRFC6979) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "key":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Key = f
}
case "signature":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Sign = f
}
}
@ -1427,6 +1381,7 @@ func (x *Checksum) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Type != 0 {
if !first {
out.RawByte(',')
} else {
@ -1441,7 +1396,9 @@ func (x *Checksum) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if len(x.Sum) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1449,10 +1406,7 @@ func (x *Checksum) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"sum\":"
out.RawString(prefix)
if x.Sum != nil {
out.Base64Bytes(x.Sum)
} else {
out.String("")
}
}
out.RawByte('}')
@ -1508,13 +1462,7 @@ func (x *Checksum) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "sum":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Sum = f
}
}

View file

@ -13,6 +13,7 @@ const (
rpcContainerGet = "Get"
rpcContainerDel = "Delete"
rpcContainerList = "List"
rpcContainerStream = "ListStream"
rpcContainerGetEACL = "GetExtendedACL"
rpcContainerUsedSpace = "AnnounceUsedSpace"
)
@ -80,3 +81,27 @@ func ListContainers(
return resp, nil
}
type ListStreamResponseReader struct {
r client.MessageReader
}
func (r *ListStreamResponseReader) Read(resp *container.ListStreamResponse) error {
return r.r.ReadMessage(resp)
}
// ListContainersStream executes ContainerService.ListStream RPC.
func ListContainersStream(
cli *client.Client,
req *container.ListStreamRequest,
opts ...client.CallOption,
) (*ListStreamResponseReader, error) {
wc, err := client.OpenServerStream(cli, common.CallMethodInfoServerStream(serviceContainer, rpcContainerList), req, opts...)
if err != nil {
return nil, err
}
return &ListStreamResponseReader{
r: wc,
}, nil
}

View file

@ -121,6 +121,7 @@ func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.OwnerId != nil {
if !first {
out.RawByte(',')
} else {
@ -130,7 +131,9 @@ func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OwnerId.MarshalEasyJSON(out)
}
}
{
if x.Expiration != 0 {
if !first {
out.RawByte(',')
} else {
@ -142,6 +145,7 @@ func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Expiration, 10)
out.RawByte('"')
}
}
out.RawByte('}')
}
@ -350,6 +354,7 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -359,7 +364,9 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -369,7 +376,9 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -379,6 +388,7 @@ func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -540,6 +550,7 @@ func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Id) != 0 {
if !first {
out.RawByte(',')
} else {
@ -547,13 +558,11 @@ func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"id\":"
out.RawString(prefix)
if x.Id != nil {
out.Base64Bytes(x.Id)
} else {
out.String("")
}
}
{
if len(x.SessionKey) != 0 {
if !first {
out.RawByte(',')
} else {
@ -561,10 +570,7 @@ func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"sessionKey\":"
out.RawString(prefix)
if x.SessionKey != nil {
out.Base64Bytes(x.SessionKey)
} else {
out.String("")
}
}
out.RawByte('}')
@ -598,25 +604,13 @@ func (x *CreateResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "id":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Id = f
}
case "sessionKey":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.SessionKey = f
}
}
@ -778,6 +772,7 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -787,7 +782,9 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.MetaHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -797,7 +794,9 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaHeader.MarshalEasyJSON(out)
}
}
{
if x.VerifyHeader != nil {
if !first {
out.RawByte(',')
} else {
@ -807,6 +806,7 @@ func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.VerifyHeader.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}

View file

@ -182,6 +182,7 @@ func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Container != nil {
if !first {
out.RawByte(',')
} else {
@ -191,7 +192,9 @@ func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Container.MarshalEasyJSON(out)
}
}
{
if len(x.Objects) != 0 {
if !first {
out.RawByte(',')
} else {
@ -208,6 +211,7 @@ func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -372,6 +376,7 @@ func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Verb != 0 {
if !first {
out.RawByte(',')
} else {
@ -386,7 +391,9 @@ func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if x.Target != nil {
if !first {
out.RawByte(',')
} else {
@ -396,6 +403,7 @@ func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Target.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -626,6 +634,7 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Verb != 0 {
if !first {
out.RawByte(',')
} else {
@ -640,7 +649,9 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
out.Int32(v)
}
}
}
{
if x.Wildcard {
if !first {
out.RawByte(',')
} else {
@ -650,7 +661,9 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Bool(x.Wildcard)
}
}
{
if x.ContainerId != nil {
if !first {
out.RawByte(',')
} else {
@ -660,6 +673,7 @@ func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.ContainerId.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -855,6 +869,7 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Exp != 0 {
if !first {
out.RawByte(',')
} else {
@ -866,7 +881,9 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Exp, 10)
out.RawByte('"')
}
}
{
if x.Nbf != 0 {
if !first {
out.RawByte(',')
} else {
@ -878,7 +895,9 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Nbf, 10)
out.RawByte('"')
}
}
{
if x.Iat != 0 {
if !first {
out.RawByte(',')
} else {
@ -890,6 +909,7 @@ func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Iat, 10)
out.RawByte('"')
}
}
out.RawByte('}')
}
@ -1182,6 +1202,7 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Id) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1189,13 +1210,11 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"id\":"
out.RawString(prefix)
if x.Id != nil {
out.Base64Bytes(x.Id)
} else {
out.String("")
}
}
{
if x.OwnerId != nil {
if !first {
out.RawByte(',')
} else {
@ -1205,7 +1224,9 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OwnerId.MarshalEasyJSON(out)
}
}
{
if x.Lifetime != nil {
if !first {
out.RawByte(',')
} else {
@ -1215,7 +1236,9 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Lifetime.MarshalEasyJSON(out)
}
}
{
if len(x.SessionKey) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1223,15 +1246,13 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"sessionKey\":"
out.RawString(prefix)
if x.SessionKey != nil {
out.Base64Bytes(x.SessionKey)
} else {
out.String("")
}
}
switch xx := x.Context.(type) {
case *SessionToken_Body_Object:
{
if xx.Object != nil {
if !first {
out.RawByte(',')
} else {
@ -1241,8 +1262,10 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
xx.Object.MarshalEasyJSON(out)
}
}
case *SessionToken_Body_Container:
{
if xx.Container != nil {
if !first {
out.RawByte(',')
} else {
@ -1253,6 +1276,7 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) {
xx.Container.MarshalEasyJSON(out)
}
}
}
out.RawByte('}')
}
@ -1284,13 +1308,7 @@ func (x *SessionToken_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "id":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Id = f
}
case "ownerID":
@ -1310,13 +1328,7 @@ func (x *SessionToken_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "sessionKey":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.SessionKey = f
}
case "object":
@ -1471,6 +1483,7 @@ func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Body != nil {
if !first {
out.RawByte(',')
} else {
@ -1480,7 +1493,9 @@ func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Body.MarshalEasyJSON(out)
}
}
{
if x.Signature != nil {
if !first {
out.RawByte(',')
} else {
@ -1490,6 +1505,7 @@ func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Signature.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -1644,6 +1660,7 @@ func (x *XHeader) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if len(x.Key) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1653,7 +1670,9 @@ func (x *XHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Key)
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -1663,6 +1682,7 @@ func (x *XHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Value)
}
}
out.RawByte('}')
}
@ -1953,6 +1973,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Version != nil {
if !first {
out.RawByte(',')
} else {
@ -1962,7 +1983,9 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Version.MarshalEasyJSON(out)
}
}
{
if x.Epoch != 0 {
if !first {
out.RawByte(',')
} else {
@ -1974,7 +1997,9 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
out.RawByte('"')
}
}
{
if x.Ttl != 0 {
if !first {
out.RawByte(',')
} else {
@ -1984,7 +2009,9 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Ttl)
}
}
{
if len(x.XHeaders) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2001,7 +2028,9 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if x.SessionToken != nil {
if !first {
out.RawByte(',')
} else {
@ -2011,7 +2040,9 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.SessionToken.MarshalEasyJSON(out)
}
}
{
if x.BearerToken != nil {
if !first {
out.RawByte(',')
} else {
@ -2021,7 +2052,9 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.BearerToken.MarshalEasyJSON(out)
}
}
{
if x.Origin != nil {
if !first {
out.RawByte(',')
} else {
@ -2031,7 +2064,9 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Origin.MarshalEasyJSON(out)
}
}
{
if x.MagicNumber != 0 {
if !first {
out.RawByte(',')
} else {
@ -2043,6 +2078,7 @@ func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.MagicNumber, 10)
out.RawByte('"')
}
}
out.RawByte('}')
}
@ -2362,6 +2398,7 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Version != nil {
if !first {
out.RawByte(',')
} else {
@ -2371,7 +2408,9 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Version.MarshalEasyJSON(out)
}
}
{
if x.Epoch != 0 {
if !first {
out.RawByte(',')
} else {
@ -2383,7 +2422,9 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
out.RawByte('"')
}
}
{
if x.Ttl != 0 {
if !first {
out.RawByte(',')
} else {
@ -2393,7 +2434,9 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Ttl)
}
}
{
if len(x.XHeaders) != 0 {
if !first {
out.RawByte(',')
} else {
@ -2410,7 +2453,9 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
{
if x.Origin != nil {
if !first {
out.RawByte(',')
} else {
@ -2420,7 +2465,9 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Origin.MarshalEasyJSON(out)
}
}
{
if x.Status != nil {
if !first {
out.RawByte(',')
} else {
@ -2430,6 +2477,7 @@ func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Status.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -2685,6 +2733,7 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.BodySignature != nil {
if !first {
out.RawByte(',')
} else {
@ -2694,7 +2743,9 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.BodySignature.MarshalEasyJSON(out)
}
}
{
if x.MetaSignature != nil {
if !first {
out.RawByte(',')
} else {
@ -2704,7 +2755,9 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaSignature.MarshalEasyJSON(out)
}
}
{
if x.OriginSignature != nil {
if !first {
out.RawByte(',')
} else {
@ -2714,7 +2767,9 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OriginSignature.MarshalEasyJSON(out)
}
}
{
if x.Origin != nil {
if !first {
out.RawByte(',')
} else {
@ -2724,6 +2779,7 @@ func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Origin.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
@ -2944,6 +3000,7 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.BodySignature != nil {
if !first {
out.RawByte(',')
} else {
@ -2953,7 +3010,9 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.BodySignature.MarshalEasyJSON(out)
}
}
{
if x.MetaSignature != nil {
if !first {
out.RawByte(',')
} else {
@ -2963,7 +3022,9 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.MetaSignature.MarshalEasyJSON(out)
}
}
{
if x.OriginSignature != nil {
if !first {
out.RawByte(',')
} else {
@ -2973,7 +3034,9 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.OriginSignature.MarshalEasyJSON(out)
}
}
{
if x.Origin != nil {
if !first {
out.RawByte(',')
} else {
@ -2983,6 +3046,7 @@ func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
x.Origin.MarshalEasyJSON(out)
}
}
out.RawByte('}')
}

View file

@ -46,6 +46,10 @@ func serviceMessageBody(req any) stableMarshaler {
return v.GetBody()
case *container.ListResponse:
return v.GetBody()
case *container.ListStreamRequest:
return v.GetBody()
case *container.ListStreamResponse:
return v.GetBody()
/* Object */
case *object.PutRequest:

View file

@ -371,6 +371,7 @@ func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Id != 0 {
if !first {
out.RawByte(',')
} else {
@ -380,7 +381,9 @@ func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Id)
}
}
{
if len(x.Value) != 0 {
if !first {
out.RawByte(',')
} else {
@ -388,10 +391,7 @@ func (x *Status_Detail) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"value\":"
out.RawString(prefix)
if x.Value != nil {
out.Base64Bytes(x.Value)
} else {
out.String("")
}
}
out.RawByte('}')
@ -439,13 +439,7 @@ func (x *Status_Detail) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "value":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.Value = f
}
}
@ -586,6 +580,7 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.Code != 0 {
if !first {
out.RawByte(',')
} else {
@ -595,7 +590,9 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.Uint32(x.Code)
}
}
{
if len(x.Message) != 0 {
if !first {
out.RawByte(',')
} else {
@ -605,7 +602,9 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString(prefix)
out.String(x.Message)
}
}
{
if len(x.Details) != 0 {
if !first {
out.RawByte(',')
} else {
@ -622,6 +621,7 @@ func (x *Status) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}

View file

@ -144,6 +144,7 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
first := true
out.RawByte('{')
{
if x.ExpirationEpoch != 0 {
if !first {
out.RawByte(',')
} else {
@ -155,7 +156,9 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.ExpirationEpoch, 10)
out.RawByte('"')
}
}
{
if len(x.SplitId) != 0 {
if !first {
out.RawByte(',')
} else {
@ -163,13 +166,11 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
}
const prefix string = "\"splitID\":"
out.RawString(prefix)
if x.SplitId != nil {
out.Base64Bytes(x.SplitId)
} else {
out.String("")
}
}
{
if len(x.Members) != 0 {
if !first {
out.RawByte(',')
} else {
@ -186,6 +187,7 @@ func (x *Tombstone) MarshalEasyJSON(out *jwriter.Writer) {
}
out.RawByte(']')
}
}
out.RawByte('}')
}
@ -231,13 +233,7 @@ func (x *Tombstone) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "splitID":
{
var f []byte
{
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
f = in.Bytes()
x.SplitId = f
}
case "members":