Example #1
0
func (p *Manymaps) readField3(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	_ktype31, _vtype32, _size30, err := iprot.ReadMapBegin()
	if err != nil {
		return thrift.NewTProtocolExceptionReadField(-1, "p.I32map", "", err)
	}
	_, _ = _ktype31, _vtype32
	p.I32map = make(map[int32]string, _size30)
	for i := 0; i < _size30; i++ {
		v37, err38 := iprot.ReadI32()
		if err38 != nil {
			return thrift.NewTProtocolExceptionReadField(0, "_key35", "", err38)
		}
		_key35 := v37
		v39, err40 := iprot.ReadString()
		if err40 != nil {
			return thrift.NewTProtocolExceptionReadField(0, "_val36", "", err40)
		}
		_val36 := v39
		p.I32map[_key35] = _val36
	}
	err = iprot.ReadMapEnd()
	if err != nil {
		return thrift.NewTProtocolExceptionReadField(-1, "", "map", err)
	}
	return err
}
Example #2
0
func (p *Manylists) readField6(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	_etype62, _size59, err := iprot.ReadListBegin()
	if err != nil {
		return thrift.NewTProtocolExceptionReadField(-1, "p.Listoflist", "", err)
	}
	_ = _etype62
	p.Listoflist = make([][]int32, _size59, _size59)
	for i := 0; i < _size59; i++ {
		_etype70, _size67, err := iprot.ReadListBegin()
		if err != nil {
			return thrift.NewTProtocolExceptionReadField(-1, "_elem64", "", err)
		}
		_ = _etype70
		_elem64 := make([]int32, _size67, _size67)
		for i := 0; i < _size67; i++ {
			v73, err74 := iprot.ReadI32()
			if err74 != nil {
				return thrift.NewTProtocolExceptionReadField(0, "_elem72", "", err74)
			}
			_elem72 := v73
			_elem64[i] = _elem72
		}
		err = iprot.ReadListEnd()
		if err != nil {
			return thrift.NewTProtocolExceptionReadField(-1, "", "list", err)
		}
		p.Listoflist[i] = _elem64
	}
	err = iprot.ReadListEnd()
	if err != nil {
		return thrift.NewTProtocolExceptionReadField(-1, "", "list", err)
	}
	return err
}
Example #3
0
func (p *Ping) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v0, err1 := iprot.ReadI32()
	if err1 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "timestamp", p.ThriftName(), err1)
	}
	p.Timestamp = v0
	return err
}
Example #4
0
func (p *MyMethodArgs) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v1123, err1124 := iprot.ReadI32()
	if err1124 != nil {
		return thrift.NewTProtocolExceptionReadField(2, "third", p.ThriftName(), err1124)
	}
	p.Third = v1123
	return err
}
Example #5
0
func (p *Intstruct) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v0, err1 := iprot.ReadI32()
	if err1 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "ifield", p.ThriftName(), err1)
	}
	p.Ifield = v0
	return err
}
Example #6
0
func (p *Manylists) readField7(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v75, err76 := iprot.ReadI32()
	if err76 != nil {
		return thrift.NewTProtocolExceptionReadField(7, "optionalint", p.ThriftName(), err76)
	}
	p.Optionalint = v75
	return err
}
Example #7
0
func (p *MulArgs) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v21, err22 := iprot.ReadI32()
	if err22 != nil {
		return thrift.NewTProtocolExceptionReadField(2, "num2", p.ThriftName(), err22)
	}
	p.Num2 = v21
	return err
}
Example #8
0
func (p *Work) readField3(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v4, err5 := iprot.ReadI32()
	if err5 != nil {
		return thrift.NewTProtocolExceptionReadField(3, "op", p.ThriftName(), err5)
	}
	p.Op = Operation(v4)
	return err
}
Example #9
0
func (p *AddResult) readField0(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v46, err47 := iprot.ReadI32()
	if err47 != nil {
		return thrift.NewTProtocolExceptionReadField(0, "success", p.ThriftName(), err47)
	}
	p.Success = v46
	return err
}
Example #10
0
func (p *AddArgs) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v44, err45 := iprot.ReadI32()
	if err45 != nil {
		return thrift.NewTProtocolExceptionReadField(2, "num2", p.ThriftName(), err45)
	}
	p.Num2 = v44
	return err
}
Example #11
0
func (p *AddArgs) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v42, err43 := iprot.ReadI32()
	if err43 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "num1", p.ThriftName(), err43)
	}
	p.Num1 = v42
	return err
}
Example #12
0
func (p *CalculateResult) readField0(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v53, err54 := iprot.ReadI32()
	if err54 != nil {
		return thrift.NewTProtocolExceptionReadField(0, "success", p.ThriftName(), err54)
	}
	p.Success = v53
	return err
}
Example #13
0
func (p *CalculateArgs) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v48, err49 := iprot.ReadI32()
	if err49 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "logid", p.ThriftName(), err49)
	}
	p.Logid = v48
	return err
}
Example #14
0
func (p *MulResult) readField0(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v23, err24 := iprot.ReadI32()
	if err24 != nil {
		return thrift.NewTProtocolExceptionReadField(0, "success", p.ThriftName(), err24)
	}
	p.Success = v23
	return err
}
Example #15
0
func (p *Work) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v0, err1 := iprot.ReadI32()
	if err1 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "num1", p.ThriftName(), err1)
	}
	p.Num1 = v0
	return err
}
Example #16
0
func (p *Work) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v2, err3 := iprot.ReadI32()
	if err3 != nil {
		return thrift.NewTProtocolExceptionReadField(2, "num2", p.ThriftName(), err3)
	}
	p.Num2 = v2
	return err
}
Example #17
0
func (p *InvalidOperation) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v8, err9 := iprot.ReadI32()
	if err9 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "what", p.ThriftName(), err9)
	}
	p.What = v8
	return err
}
Example #18
0
func (p *MulArgs) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v19, err20 := iprot.ReadI32()
	if err20 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "num1", p.ThriftName(), err20)
	}
	p.Num1 = v19
	return err
}
Example #19
0
func (p *Manylists) readField3(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	_etype31, _size28, err := iprot.ReadListBegin()
	if err != nil {
		return thrift.NewTProtocolExceptionReadField(-1, "p.I32list", "", err)
	}
	_ = _etype31
	p.I32list = make([]int32, _size28, _size28)
	for i := 0; i < _size28; i++ {
		v34, err35 := iprot.ReadI32()
		if err35 != nil {
			return thrift.NewTProtocolExceptionReadField(0, "_elem33", "", err35)
		}
		_elem33 := v34
		p.I32list[i] = _elem33
	}
	err = iprot.ReadListEnd()
	if err != nil {
		return thrift.NewTProtocolExceptionReadField(-1, "", "list", err)
	}
	return err
}