Exemple #1
0
func (p *Types) writeField9(oprot thrift.TProtocol) (err error) {
	if p.IsSetMapValue() {
		if err := oprot.WriteFieldBegin("map_value", thrift.MAP, 9); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:map_value: ", p), err)
		}
		if err := oprot.WriteMapBegin(thrift.STRING, thrift.I32, len(p.MapValue)); err != nil {
			return thrift.PrependError("error writing map begin: ", err)
		}
		for k, v := range p.MapValue {
			if err := oprot.WriteString(string(k)); err != nil {
				return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
			}
			if err := oprot.WriteI32(int32(v)); err != nil {
				return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
			}
		}
		if err := oprot.WriteMapEnd(); err != nil {
			return thrift.PrependError("error writing map end: ", err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:map_value: ", p), err)
		}
	}
	return err
}
Exemple #2
0
func (p *TestCase1Args) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("num1", thrift.I32, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:num1: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Num1)); err != nil {
		return fmt.Errorf("%T.num1 (1) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:num1: %s", p, err)
	}
	return err
}
Exemple #3
0
func (p *UpdateStatusArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("updateType", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:updateType: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.UpdateType)); err != nil {
		return fmt.Errorf("%T.updateType (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:updateType: %s", p, err)
	}
	return err
}
Exemple #4
0
func (p *RpcException) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("code", thrift.I32, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:code: ", p), err)
	}
	if err := oprot.WriteI32(int32(p.Code)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.code (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:code: ", p), err)
	}
	return err
}
Exemple #5
0
func (p *Work) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("op", thrift.I32, 3); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:op: ", p), err)
	}
	if err := oprot.WriteI32(int32(p.Op)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.op (3) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:op: ", p), err)
	}
	return err
}
func (p *GetPrivateMessageListArgs) writeField6(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("rowCount", thrift.I32, 6); err != nil {
		return fmt.Errorf("%T write field begin error 6:rowCount: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.RowCount)); err != nil {
		return fmt.Errorf("%T.rowCount (6) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 6:rowCount: %s", p, err)
	}
	return err
}
Exemple #7
0
func (p *VersaoThrift) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("minor", thrift.I32, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:minor: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Minor)); err != nil {
		return fmt.Errorf("%T.minor (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:minor: %s", p, err)
	}
	return err
}
Exemple #8
0
func (p *QueryResult) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("count", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:count: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Count)); err != nil {
		return fmt.Errorf("%T.count (3) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:count: %s", p, err)
	}
	return err
}
Exemple #9
0
func (p *AddArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("num2", thrift.I32, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:num2: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Num2)); err != nil {
		return fmt.Errorf("%T.num2 (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:num2: %s", p, err)
	}
	return err
}
Exemple #10
0
func (p *RequestInfo) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("type", thrift.I32, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:type: ", p), err)
	}
	if err := oprot.WriteI32(int32(p.Type)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.type (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:type: ", p), err)
	}
	return err
}
Exemple #11
0
func (p *Item) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("confidence", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:confidence: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Confidence)); err != nil {
		return fmt.Errorf("%T.confidence (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:confidence: %s", p, err)
	}
	return err
}
Exemple #12
0
func (p *AddTagArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("resourceType", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:resourceType: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.ResourceType)); err != nil {
		return fmt.Errorf("%T.resourceType (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:resourceType: %s", p, err)
	}
	return err
}
Exemple #13
0
func (p *GetTagsByUidArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("rowCount", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:rowCount: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.RowCount)); err != nil {
		return fmt.Errorf("%T.rowCount (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:rowCount: %s", p, err)
	}
	return err
}
Exemple #14
0
func (p *Request) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("scope", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:scope: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Scope)); err != nil {
		return fmt.Errorf("%T.scope (3) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:scope: %s", p, err)
	}
	return err
}
Exemple #15
0
func (p *Request) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("start", thrift.I32, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:start: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Start)); err != nil {
		return fmt.Errorf("%T.start (2) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:start: %s", p, err)
	}
	return err
}
Exemple #16
0
func (p *QueryResult) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("queryTime", thrift.I32, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:queryTime: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.QueryTime)); err != nil {
		return fmt.Errorf("%T.queryTime (1) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:queryTime: %s", p, err)
	}
	return err
}
Exemple #17
0
func (p *QueryResult) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("responseTime", thrift.I32, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:responseTime: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.ResponseTime)); err != nil {
		return fmt.Errorf("%T.responseTime (2) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:responseTime: %s", p, err)
	}
	return err
}
Exemple #18
0
func (p *CalculateArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("logid", thrift.I32, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:logid: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Logid)); err != nil {
		return fmt.Errorf("%T.logid (1) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:logid: %s", p, err)
	}
	return err
}
func (p *Response) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("code", thrift.I32, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:code: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Code)); err != nil {
		return fmt.Errorf("%T.code (1) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:code: %s", p, err)
	}
	return err
}
Exemple #20
0
func (p *VmMoney) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("id", thrift.I32, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:id: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Id)); err != nil {
		return fmt.Errorf("%T.id (1) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:id: %s", p, err)
	}
	return err
}
Exemple #21
0
func (p *VersaoThrift) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("revision", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:revision: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Revision)); err != nil {
		return fmt.Errorf("%T.revision (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:revision: %s", p, err)
	}
	return err
}
Exemple #22
0
func (p *VmMoney) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("nodeId", thrift.I32, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:nodeId: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.NodeId)); err != nil {
		return fmt.Errorf("%T.nodeId (3) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:nodeId: %s", p, err)
	}
	return err
}
Exemple #23
0
func (p *Work) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("num1", thrift.I32, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:num1: ", p), err)
	}
	if err := oprot.WriteI32(int32(p.Num1)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.num1 (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:num1: ", p), err)
	}
	return err
}
Exemple #24
0
func (p *VmMoney) writeField6(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("dataType", thrift.I32, 6); err != nil {
		return fmt.Errorf("%T write field begin error 6:dataType: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.DataType)); err != nil {
		return fmt.Errorf("%T.dataType (6) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 6:dataType: %s", p, err)
	}
	return err
}
Exemple #25
0
func (p *InvalidOperation) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("whatOp", thrift.I32, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:whatOp: ", p), err)
	}
	if err := oprot.WriteI32(int32(p.WhatOp)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.whatOp (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:whatOp: ", p), err)
	}
	return err
}
Exemple #26
0
func (p *VmMoney) writeField7(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("deleteMark", thrift.I32, 7); err != nil {
		return fmt.Errorf("%T write field begin error 7:deleteMark: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.DeleteMark)); err != nil {
		return fmt.Errorf("%T.deleteMark (7) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 7:deleteMark: %s", p, err)
	}
	return err
}
Exemple #27
0
func (p *RpcServiceAddArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("num2", thrift.I32, 2); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:num2: ", p), err)
	}
	if err := oprot.WriteI32(int32(p.Num2)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.num2 (2) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:num2: ", p), err)
	}
	return err
}
Exemple #28
0
func (p *VmMoney) writeField8(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("money", thrift.I32, 8); err != nil {
		return fmt.Errorf("%T write field begin error 8:money: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.Money)); err != nil {
		return fmt.Errorf("%T.money (8) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 8:money: %s", p, err)
	}
	return err
}
func (p *SharedServiceGetStructArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("key", thrift.I32, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:key: ", p), err)
	}
	if err := oprot.WriteI32(int32(p.Key)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.key (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:key: ", p), err)
	}
	return err
}
Exemple #30
0
func (p *VmMoney) writeField9(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("payType", thrift.I32, 9); err != nil {
		return fmt.Errorf("%T write field begin error 9:payType: %s", p, err)
	}
	if err := oprot.WriteI32(int32(p.PayType)); err != nil {
		return fmt.Errorf("%T.payType (9) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 9:payType: %s", p, err)
	}
	return err
}