in scheduler/api/thrift/gen-go/scoot/cloudscoot.go [767:817]
func (p *CloudScootClient) recvSetClassLoadPercents() (err error) {
iprot := p.InputProtocol
if iprot == nil {
iprot = p.ProtocolFactory.GetProtocol(p.Transport)
p.InputProtocol = iprot
}
method, mTypeId, seqId, err := iprot.ReadMessageBegin()
if err != nil {
return
}
if method != "SetClassLoadPercents" {
err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "SetClassLoadPercents failed: wrong method name")
return
}
if p.SeqId != seqId {
err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "SetClassLoadPercents failed: out of sequence response")
return
}
if mTypeId == thrift.EXCEPTION {
error24 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
var error25 error
error25, err = error24.Read(iprot)
if err != nil {
return
}
if err = iprot.ReadMessageEnd(); err != nil {
return
}
err = error25
return
}
if mTypeId != thrift.REPLY {
err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "SetClassLoadPercents failed: invalid message type")
return
}
result := CloudScootSetClassLoadPercentsResult{}
if err = result.Read(iprot); err != nil {
return
}
if err = iprot.ReadMessageEnd(); err != nil {
return
}
if result.Ir != nil {
err = result.Ir
return
} else if result.Err != nil {
err = result.Err
return
}
return
}