예제 #1
0
func (p *NoStdJson) writeField1(oprot thrift.TProtocol) (err error) {
	if p.IsSetOne() {
		if err := oprot.WriteFieldBegin("one", thrift.MAP, 1); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:one: ", p), err)
		}
		if err := oprot.WriteMapBegin(thrift.I64, thrift.STRING, len(p.One)); err != nil {
			return thrift.PrependError("error writing map begin: ", err)
		}
		for k, v := range p.One {
			if err := oprot.WriteI64(int64(k)); err != nil {
				return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
			}
			if err := oprot.WriteString(string(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 1:one: ", p), err)
		}
	}
	return err
}
예제 #2
0
func (p *BoltProcessTimerArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("time", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:time: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Time)); err != nil {
		return fmt.Errorf("%T.time (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:time: %s", p, err)
	}
	return err
}
예제 #3
0
func (p *GetPrivateMessageListArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("uid", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:uid: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Uid)); err != nil {
		return fmt.Errorf("%T.uid (1) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:uid: %s", p, err)
	}
	return err
}
예제 #4
0
func (p *GetPrivateMessageListArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("endReceiveTime", thrift.I64, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:endReceiveTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.EndReceiveTime)); err != nil {
		return fmt.Errorf("%T.endReceiveTime (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:endReceiveTime: %s", p, err)
	}
	return err
}
예제 #5
0
func (p *DeleteResourceViewHistoryArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("viewTime", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:viewTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.ViewTime)); err != nil {
		return fmt.Errorf("%T.viewTime (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:viewTime: %s", p, err)
	}
	return err
}
예제 #6
0
파일: ttypes.go 프로젝트: esusab/integracao
func (p *DadoTransporteThrift) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("tipoDadoSerializado", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:tipoDadoSerializado: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.TipoDadoSerializado)); err != nil {
		return fmt.Errorf("%T.tipoDadoSerializado (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:tipoDadoSerializado: %s", p, err)
	}
	return err
}
예제 #7
0
func (p *AuditLogEntry) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("id", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:id: %s", p, err)
	}
	if err := oprot.WriteI64(int64(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
}
예제 #8
0
func (p *Person) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("ID", thrift.I64, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:ID: ", p), err)
	}
	if err := oprot.WriteI64(int64(p.ID)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.ID (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:ID: ", p), err)
	}
	return err
}
예제 #9
0
func (p *GetComplaintsArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("startCreateTime", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:startCreateTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.StartCreateTime)); err != nil {
		return fmt.Errorf("%T.startCreateTime (1) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:startCreateTime: %s", p, err)
	}
	return err
}
예제 #10
0
func (p *UpdateComplaintArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("mask", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:mask: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Mask)); err != nil {
		return fmt.Errorf("%T.mask (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:mask: %s", p, err)
	}
	return err
}
예제 #11
0
func (p *GetGroupMessagesArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("startMid", thrift.I64, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:startMid: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.StartMid)); err != nil {
		return fmt.Errorf("%T.startMid (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:startMid: %s", p, err)
	}
	return err
}
예제 #12
0
func (p *GetGroupMessagesArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("startDeliverTime", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:startDeliverTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.StartDeliverTime)); err != nil {
		return fmt.Errorf("%T.startDeliverTime (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:startDeliverTime: %s", p, err)
	}
	return err
}
예제 #13
0
func (p *SignalArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("topologyId", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:topologyId: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.TopologyId)); err != nil {
		return fmt.Errorf("%T.topologyId (1) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:topologyId: %s", p, err)
	}
	return err
}
예제 #14
0
파일: rpcservice.go 프로젝트: gityf/go
func (p *RpcServiceFunCallArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("callTime", thrift.I64, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:callTime: ", p), err)
	}
	if err := oprot.WriteI64(int64(p.CallTime)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.callTime (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:callTime: ", p), err)
	}
	return err
}
예제 #15
0
func (p *DestroyArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("user_id", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:user_id: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.UserId)); err != nil {
		return fmt.Errorf("%T.user_id (1) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:user_id: %s", p, err)
	}
	return err
}
예제 #16
0
파일: ttypes.go 프로젝트: qqliu/kibitz
func (p *Recommender) writeField12(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("numRecs", thrift.I64, 12); err != nil {
		return fmt.Errorf("%T write field begin error 12:numRecs: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.NumRecs)); err != nil {
		return fmt.Errorf("%T.numRecs (12) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 12:numRecs: %s", p, err)
	}
	return err
}
예제 #17
0
파일: ttypes.go 프로젝트: qqliu/kibitz
func (p *Recommender) writeField13(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("maxRatingVal", thrift.I64, 13); err != nil {
		return fmt.Errorf("%T write field begin error 13:maxRatingVal: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.MaxRatingVal)); err != nil {
		return fmt.Errorf("%T.maxRatingVal (13) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 13:maxRatingVal: %s", p, err)
	}
	return err
}
예제 #18
0
func (p *GetComplaintsArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("endCreateTime", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:endCreateTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.EndCreateTime)); err != nil {
		return fmt.Errorf("%T.endCreateTime (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:endCreateTime: %s", p, err)
	}
	return err
}
예제 #19
0
func (p *FunCallArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("callTime", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:callTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.CallTime)); err != nil {
		return fmt.Errorf("%T.callTime (1) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:callTime: %s", p, err)
	}
	return err
}
예제 #20
0
func (p *LeaveLiveArgs) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("rid", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:rid: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Rid)); err != nil {
		return fmt.Errorf("%T.rid (1) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:rid: %s", p, err)
	}
	return err
}
예제 #21
0
func (p *AuditLogEntry) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("tag", thrift.I64, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:tag: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Tag)); err != nil {
		return fmt.Errorf("%T.tag (3) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:tag: %s", p, err)
	}
	return err
}
예제 #22
0
func (p *SendLiveMessageArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("uid", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:uid: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Uid)); err != nil {
		return fmt.Errorf("%T.uid (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:uid: %s", p, err)
	}
	return err
}
예제 #23
0
func (p *GetResourceViewHistoryArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("endTime", thrift.I64, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:endTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.EndTime)); err != nil {
		return fmt.Errorf("%T.endTime (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:endTime: %s", p, err)
	}
	return err
}
예제 #24
0
func (p *Blog) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("createdTime", thrift.I64, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:createdTime: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.CreatedTime)); err != nil {
		return fmt.Errorf("%T.createdTime (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:createdTime: %s", p, err)
	}
	return err
}
예제 #25
0
func (p *DeleteResourceViewHistoryArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("rid", thrift.I64, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:rid: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Rid)); err != nil {
		return fmt.Errorf("%T.rid (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:rid: %s", p, err)
	}
	return err
}
예제 #26
0
파일: tagmanager.go 프로젝트: lei-yu/GOPATH
func (p *AddTagArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("rid", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:rid: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Rid)); err != nil {
		return fmt.Errorf("%T.rid (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:rid: %s", p, err)
	}
	return err
}
예제 #27
0
func (p *GetPrivateMessageListArgs) writeField4(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("startId", thrift.I64, 4); err != nil {
		return fmt.Errorf("%T write field begin error 4:startId: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.StartId)); err != nil {
		return fmt.Errorf("%T.startId (4) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 4:startId: %s", p, err)
	}
	return err
}
예제 #28
0
파일: ttypes.go 프로젝트: qqliu/kibitz
func (p *Item) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("kibitz_generated_id", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:kibitz_generated_id: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.KibitzGeneratedId)); err != nil {
		return fmt.Errorf("%T.kibitz_generated_id (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:kibitz_generated_id: %s", p, err)
	}
	return err
}
예제 #29
0
func (p *ColorCount) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("total", thrift.I64, 1); err != nil {
		return fmt.Errorf("%T write field begin error 1:total: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Total)); err != nil {
		return fmt.Errorf("%T.total (1) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 1:total: %s", p, err)
	}
	return err
}
예제 #30
0
func (p *GrantUserAccessToGroupRegionArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("gid", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:gid: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.Gid)); err != nil {
		return fmt.Errorf("%T.gid (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:gid: %s", p, err)
	}
	return err
}