Пример #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
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
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
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
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
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
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
}