Exemple #1
0
func (p *Moments) writeField5(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("m4", thrift.DOUBLE, 5); err != nil {
		return fmt.Errorf("%T write field begin error 5:m4: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.M4)); err != nil {
		return fmt.Errorf("%T.m4 (5) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 5:m4: %s", p, err)
	}
	return err
}
Exemple #2
0
func (p *Moments) writeField4(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("m3", thrift.DOUBLE, 4); err != nil {
		return fmt.Errorf("%T write field begin error 4:m3: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.M3)); err != nil {
		return fmt.Errorf("%T.m3 (4) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 4:m3: %s", p, err)
	}
	return err
}
Exemple #3
0
func (p *Moments) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("m2", thrift.DOUBLE, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:m2: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.M2)); err != nil {
		return fmt.Errorf("%T.m2 (3) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:m2: %s", p, err)
	}
	return err
}
Exemple #4
0
func (p *Moments) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("m1", thrift.DOUBLE, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:m1: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.M1)); err != nil {
		return fmt.Errorf("%T.m1 (2) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:m1: %s", p, err)
	}
	return err
}
Exemple #5
0
func (p *Annotation) writeField1(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("timestamp", thrift.DOUBLE, 1); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:timestamp: ", p), err)
	}
	if err := oprot.WriteDouble(float64(p.Timestamp)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.timestamp (1) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:timestamp: ", p), err)
	}
	return err
}
Exemple #6
0
func (p *BinaryAnnotation) writeField3(oprot thrift.TProtocol) (err error) {
	if p.IsSetDoubleValue() {
		if err := oprot.WriteFieldBegin("doubleValue", thrift.DOUBLE, 3); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:doubleValue: ", p), err)
		}
		if err := oprot.WriteDouble(float64(*p.DoubleValue)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.doubleValue (3) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:doubleValue: ", p), err)
		}
	}
	return err
}