[#1479] control: Regenerate protobufs for service

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-11-07 17:50:14 +03:00
parent 9b13a18aac
commit 755cae3f19
4 changed files with 2144 additions and 421 deletions

View file

@ -233,14 +233,25 @@ func (x *HealthCheckRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }
@ -375,11 +386,22 @@ func (x *HealthCheckResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"healthStatus\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Int32(int32(x.HealthStatus)) } else {
first = false
}
const prefix string = "\"healthStatus\":"
out.RawString(prefix)
v := int32(x.HealthStatus)
if vv, ok := HealthStatus_name[v]; ok {
out.String(vv)
} else {
out.Int32(v)
}
} }
out.RawByte('}') out.RawByte('}')
} }
@ -564,14 +586,25 @@ func (x *HealthCheckResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }
@ -706,10 +739,16 @@ func (x *TickEpochRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"vub\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"vub\":"
out.RawString(prefix)
out.Uint32(x.Vub) out.Uint32(x.Vub)
} }
out.RawByte('}') out.RawByte('}')
@ -743,7 +782,15 @@ func (x *TickEpochRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "vub": case "vub":
{ {
var f uint32 var f uint32
f = in.Uint32() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 32)
if err != nil {
in.AddError(err)
return
}
pv := uint32(v)
f = pv
x.Vub = f x.Vub = f
} }
} }
@ -879,14 +926,25 @@ func (x *TickEpochRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }
@ -1021,10 +1079,16 @@ func (x *TickEpochResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"vub\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"vub\":"
out.RawString(prefix)
out.Uint32(x.Vub) out.Uint32(x.Vub)
} }
out.RawByte('}') out.RawByte('}')
@ -1058,7 +1122,15 @@ func (x *TickEpochResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "vub": case "vub":
{ {
var f uint32 var f uint32
f = in.Uint32() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 32)
if err != nil {
in.AddError(err)
return
}
pv := uint32(v)
f = pv
x.Vub = f x.Vub = f
} }
} }
@ -1194,14 +1266,25 @@ func (x *TickEpochResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }
@ -1356,14 +1439,29 @@ func (x *RemoveNodeRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"key\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Base64Bytes(x.Key) } else {
first = false
}
const prefix string = "\"key\":"
out.RawString(prefix)
if x.Key != nil {
out.Base64Bytes(x.Key)
} else {
out.String("")
}
} }
{ {
const prefix string = ",\"vub\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"vub\":"
out.RawString(prefix) out.RawString(prefix)
out.Uint32(x.Vub) out.Uint32(x.Vub)
} }
@ -1398,13 +1496,27 @@ func (x *RemoveNodeRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "key": case "key":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.Key = f x.Key = f
} }
case "vub": case "vub":
{ {
var f uint32 var f uint32
f = in.Uint32() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 32)
if err != nil {
in.AddError(err)
return
}
pv := uint32(v)
f = pv
x.Vub = f x.Vub = f
} }
} }
@ -1540,14 +1652,25 @@ func (x *RemoveNodeRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }
@ -1682,10 +1805,16 @@ func (x *RemoveNodeResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"vub\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"vub\":"
out.RawString(prefix)
out.Uint32(x.Vub) out.Uint32(x.Vub)
} }
out.RawByte('}') out.RawByte('}')
@ -1719,7 +1848,15 @@ func (x *RemoveNodeResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "vub": case "vub":
{ {
var f uint32 var f uint32
f = in.Uint32() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 32)
if err != nil {
in.AddError(err)
return
}
pv := uint32(v)
f = pv
x.Vub = f x.Vub = f
} }
} }
@ -1855,14 +1992,25 @@ func (x *RemoveNodeResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }
@ -2037,19 +2185,43 @@ func (x *RemoveContainerRequest_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"containerId\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Base64Bytes(x.ContainerId) } else {
} first = false
{ }
const prefix string = ",\"owner\":" const prefix string = "\"containerId\":"
out.RawString(prefix) out.RawString(prefix)
out.Base64Bytes(x.Owner) if x.ContainerId != nil {
out.Base64Bytes(x.ContainerId)
} else {
out.String("")
}
} }
{ {
const prefix string = ",\"vub\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"owner\":"
out.RawString(prefix)
if x.Owner != nil {
out.Base64Bytes(x.Owner)
} else {
out.String("")
}
}
{
if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"vub\":"
out.RawString(prefix) out.RawString(prefix)
out.Uint32(x.Vub) out.Uint32(x.Vub)
} }
@ -2084,19 +2256,39 @@ func (x *RemoveContainerRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "containerId": case "containerId":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.ContainerId = f x.ContainerId = f
} }
case "owner": case "owner":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.Owner = f x.Owner = f
} }
case "vub": case "vub":
{ {
var f uint32 var f uint32
f = in.Uint32() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 32)
if err != nil {
in.AddError(err)
return
}
pv := uint32(v)
f = pv
x.Vub = f x.Vub = f
} }
} }
@ -2232,14 +2424,25 @@ func (x *RemoveContainerRequest) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }
@ -2374,10 +2577,16 @@ func (x *RemoveContainerResponse_Body) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"vub\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"vub\":"
out.RawString(prefix)
out.Uint32(x.Vub) out.Uint32(x.Vub)
} }
out.RawByte('}') out.RawByte('}')
@ -2411,7 +2620,15 @@ func (x *RemoveContainerResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "vub": case "vub":
{ {
var f uint32 var f uint32
f = in.Uint32() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 32)
if err != nil {
in.AddError(err)
return
}
pv := uint32(v)
f = pv
x.Vub = f x.Vub = f
} }
} }
@ -2547,14 +2764,25 @@ func (x *RemoveContainerResponse) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"body\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"body\":"
out.RawString(prefix)
x.Body.MarshalEasyJSON(out) x.Body.MarshalEasyJSON(out)
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
x.Signature.MarshalEasyJSON(out) x.Signature.MarshalEasyJSON(out)
} }

View file

@ -155,16 +155,35 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"key\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Base64Bytes(x.Key) } else {
first = false
}
const prefix string = "\"key\":"
out.RawString(prefix)
if x.Key != nil {
out.Base64Bytes(x.Key)
} else {
out.String("")
}
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
out.Base64Bytes(x.Sign) if x.Sign != nil {
out.Base64Bytes(x.Sign)
} else {
out.String("")
}
} }
out.RawByte('}') out.RawByte('}')
} }
@ -197,13 +216,25 @@ func (x *Signature) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "key": case "key":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.Key = f x.Key = f
} }
case "signature": case "signature":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.Sign = f x.Sign = f
} }
} }

File diff suppressed because it is too large Load diff

View file

@ -234,16 +234,35 @@ func (x *Signature) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"key\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Base64Bytes(x.Key) } else {
first = false
}
const prefix string = "\"key\":"
out.RawString(prefix)
if x.Key != nil {
out.Base64Bytes(x.Key)
} else {
out.String("")
}
} }
{ {
const prefix string = ",\"signature\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"signature\":"
out.RawString(prefix) out.RawString(prefix)
out.Base64Bytes(x.Sign) if x.Sign != nil {
out.Base64Bytes(x.Sign)
} else {
out.String("")
}
} }
out.RawByte('}') out.RawByte('}')
} }
@ -276,13 +295,25 @@ func (x *Signature) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "key": case "key":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.Key = f x.Key = f
} }
case "signature": case "signature":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.Sign = f x.Sign = f
} }
} }
@ -414,19 +445,35 @@ func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"key\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"key\":"
out.RawString(prefix)
out.String(x.Key) out.String(x.Key)
} }
{ {
const prefix string = ",\"value\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"value\":"
out.RawString(prefix) out.RawString(prefix)
out.String(x.Value) out.String(x.Value)
} }
{ {
const prefix string = ",\"parents\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"parents\":"
out.RawString(prefix) out.RawString(prefix)
out.RawByte('[') out.RawByte('[')
for i := range x.Parents { for i := range x.Parents {
@ -645,14 +692,29 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"publicKey\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Base64Bytes(x.PublicKey) } else {
first = false
}
const prefix string = "\"publicKey\":"
out.RawString(prefix)
if x.PublicKey != nil {
out.Base64Bytes(x.PublicKey)
} else {
out.String("")
}
} }
{ {
const prefix string = ",\"addresses\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"addresses\":"
out.RawString(prefix) out.RawString(prefix)
out.RawByte('[') out.RawByte('[')
for i := range x.Addresses { for i := range x.Addresses {
@ -664,7 +726,12 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawByte(']') out.RawByte(']')
} }
{ {
const prefix string = ",\"attributes\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"attributes\":"
out.RawString(prefix) out.RawString(prefix)
out.RawByte('[') out.RawByte('[')
for i := range x.Attributes { for i := range x.Attributes {
@ -676,9 +743,19 @@ func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawByte(']') out.RawByte(']')
} }
{ {
const prefix string = ",\"state\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"state\":"
out.RawString(prefix) out.RawString(prefix)
out.Int32(int32(x.State)) v := int32(x.State)
if vv, ok := NetmapStatus_name[v]; ok {
out.String(vv)
} else {
out.Int32(v)
}
} }
out.RawByte('}') out.RawByte('}')
} }
@ -711,7 +788,13 @@ func (x *NodeInfo) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "publicKey": case "publicKey":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.PublicKey = f x.PublicKey = f
} }
case "addresses": case "addresses":
@ -878,14 +961,27 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"epoch\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Uint64(x.Epoch) } else {
first = false
}
const prefix string = "\"epoch\":"
out.RawString(prefix)
out.RawByte('"')
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
out.RawByte('"')
} }
{ {
const prefix string = ",\"nodes\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"nodes\":"
out.RawString(prefix) out.RawString(prefix)
out.RawByte('[') out.RawByte('[')
for i := range x.Nodes { for i := range x.Nodes {
@ -927,7 +1023,15 @@ func (x *Netmap) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "epoch": case "epoch":
{ {
var f uint64 var f uint64
f = in.Uint64() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 64)
if err != nil {
in.AddError(err)
return
}
pv := uint64(v)
f = pv
x.Epoch = f x.Epoch = f
} }
case "nodes": case "nodes":
@ -1179,19 +1283,39 @@ func (x *ShardInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"shardID\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Base64Bytes(x.Shard_ID) } else {
first = false
}
const prefix string = "\"shardID\":"
out.RawString(prefix)
if x.Shard_ID != nil {
out.Base64Bytes(x.Shard_ID)
} else {
out.String("")
}
} }
{ {
const prefix string = ",\"metabasePath\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"metabasePath\":"
out.RawString(prefix) out.RawString(prefix)
out.String(x.MetabasePath) out.String(x.MetabasePath)
} }
{ {
const prefix string = ",\"blobstor\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"blobstor\":"
out.RawString(prefix) out.RawString(prefix)
out.RawByte('[') out.RawByte('[')
for i := range x.Blobstor { for i := range x.Blobstor {
@ -1203,27 +1327,57 @@ func (x *ShardInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawByte(']') out.RawByte(']')
} }
{ {
const prefix string = ",\"writecachePath\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"writecachePath\":"
out.RawString(prefix) out.RawString(prefix)
out.String(x.WritecachePath) out.String(x.WritecachePath)
} }
{ {
const prefix string = ",\"mode\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"mode\":"
out.RawString(prefix) out.RawString(prefix)
out.Int32(int32(x.Mode)) v := int32(x.Mode)
if vv, ok := ShardMode_name[v]; ok {
out.String(vv)
} else {
out.Int32(v)
}
} }
{ {
const prefix string = ",\"errorCount\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"errorCount\":"
out.RawString(prefix) out.RawString(prefix)
out.Uint32(x.ErrorCount) out.Uint32(x.ErrorCount)
} }
{ {
const prefix string = ",\"piloramaPath\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"piloramaPath\":"
out.RawString(prefix) out.RawString(prefix)
out.String(x.PiloramaPath) out.String(x.PiloramaPath)
} }
{ {
const prefix string = ",\"evacuationInProgress\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"evacuationInProgress\":"
out.RawString(prefix) out.RawString(prefix)
out.Bool(x.EvacuationInProgress) out.Bool(x.EvacuationInProgress)
} }
@ -1258,7 +1412,13 @@ func (x *ShardInfo) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "shardID": case "shardID":
{ {
var f []byte var f []byte
f = in.Bytes() {
tmp := in.Bytes()
if len(tmp) == 0 {
tmp = nil
}
f = tmp
}
x.Shard_ID = f x.Shard_ID = f
} }
case "metabasePath": case "metabasePath":
@ -1312,7 +1472,15 @@ func (x *ShardInfo) UnmarshalEasyJSON(in *jlexer.Lexer) {
case "errorCount": case "errorCount":
{ {
var f uint32 var f uint32
f = in.Uint32() r := in.JsonNumber()
n := r.String()
v, err := strconv.ParseUint(n, 10, 32)
if err != nil {
in.AddError(err)
return
}
pv := uint32(v)
f = pv
x.ErrorCount = f x.ErrorCount = f
} }
case "piloramaPath": case "piloramaPath":
@ -1436,14 +1604,25 @@ func (x *BlobstorInfo) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"path\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
} else {
first = false
}
const prefix string = "\"path\":"
out.RawString(prefix)
out.String(x.Path) out.String(x.Path)
} }
{ {
const prefix string = ",\"type\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"type\":"
out.RawString(prefix) out.RawString(prefix)
out.String(x.Type) out.String(x.Type)
} }
@ -1637,14 +1816,30 @@ func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer) {
out.RawString("null") out.RawString("null")
return return
} }
first := true
out.RawByte('{') out.RawByte('{')
{ {
const prefix string = ",\"type\":" if !first {
out.RawString(prefix[1:]) out.RawByte(',')
out.Int32(int32(x.Type)) } else {
first = false
}
const prefix string = "\"type\":"
out.RawString(prefix)
v := int32(x.Type)
if vv, ok := ChainTarget_TargetType_name[v]; ok {
out.String(vv)
} else {
out.Int32(v)
}
} }
{ {
const prefix string = ",\"Name\":" if !first {
out.RawByte(',')
} else {
first = false
}
const prefix string = "\"Name\":"
out.RawString(prefix) out.RawString(prefix)
out.String(x.Name) out.String(x.Name)
} }