Пример #1
0
func (p *FetchMessageOperationsArgs) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("localRevision", thrift.I64, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:localRevision: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.LocalRevision)); err != nil {
		return fmt.Errorf("%T.localRevision (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:localRevision: %s", p, err)
	}
	return err
}
Пример #2
0
func (p *FetchMessageOperationsArgs) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("lastOpTimestamp", thrift.I64, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:lastOpTimestamp: %s", p, err)
	}
	if err := oprot.WriteI64(int64(p.LastOpTimestamp)); err != nil {
		return fmt.Errorf("%T.lastOpTimestamp (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:lastOpTimestamp: %s", p, err)
	}
	return err
}
Пример #3
0
func (p *GetLastOpRevisionResult) writeField0(oprot thrift.TProtocol) (err error) {
	if p.IsSetSuccess() {
		if err := oprot.WriteFieldBegin("success", thrift.I64, 0); err != nil {
			return fmt.Errorf("%T write field begin error 0:success: %s", p, err)
		}
		if err := oprot.WriteI64(int64(*p.Success)); err != nil {
			return fmt.Errorf("%T.success (0) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 0:success: %s", p, err)
		}
	}
	return err
}