Beispiel #1
0
func (p *ColorMeta) writeField4(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("distance", thrift.DOUBLE, 4); err != nil {
		return fmt.Errorf("%T write field begin error 4:distance: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.Distance)); err != nil {
		return fmt.Errorf("%T.distance (4) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 4:distance: %s", p, err)
	}
	return err
}
Beispiel #2
0
func (p *ColorCount) writeField2(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("percentage", thrift.DOUBLE, 2); err != nil {
		return fmt.Errorf("%T write field begin error 2:percentage: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.Percentage)); err != nil {
		return fmt.Errorf("%T.percentage (2) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 2:percentage: %s", p, err)
	}
	return err
}
Beispiel #3
0
func (p *ColorMeta) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("search_factor", thrift.DOUBLE, 3); err != nil {
		return fmt.Errorf("%T write field begin error 3:search_factor: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.SearchFactor)); err != nil {
		return fmt.Errorf("%T.search_factor (3) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 3:search_factor: %s", p, err)
	}
	return err
}
Beispiel #4
0
func (p *Item) writeField4(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("predictedPreferences", thrift.DOUBLE, 4); err != nil {
		return fmt.Errorf("%T write field begin error 4:predictedPreferences: %s", p, err)
	}
	if err := oprot.WriteDouble(float64(p.PredictedPreferences)); err != nil {
		return fmt.Errorf("%T.predictedPreferences (4) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 4:predictedPreferences: %s", p, err)
	}
	return err
}
Beispiel #5
0
func (p *FichaVisitaDomiciliarChildThrift) writeField13(oprot thrift.TProtocol) (err error) {
	if p.IsSetAlturaAcompanhamentoNutricional() {
		if err := oprot.WriteFieldBegin("alturaAcompanhamentoNutricional", thrift.DOUBLE, 13); err != nil {
			return fmt.Errorf("%T write field begin error 13:alturaAcompanhamentoNutricional: %s", p, err)
		}
		if err := oprot.WriteDouble(float64(*p.AlturaAcompanhamentoNutricional)); err != nil {
			return fmt.Errorf("%T.alturaAcompanhamentoNutricional (13) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 13:alturaAcompanhamentoNutricional: %s", p, err)
		}
	}
	return err
}
Beispiel #6
0
func (p *ParticipanteRowItemThrift) writeField5(oprot thrift.TProtocol) (err error) {
	if p.IsSetAltura() {
		if err := oprot.WriteFieldBegin("altura", thrift.DOUBLE, 5); err != nil {
			return fmt.Errorf("%T write field begin error 5:altura: %s", p, err)
		}
		if err := oprot.WriteDouble(float64(*p.Altura)); err != nil {
			return fmt.Errorf("%T.altura (5) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 5:altura: %s", p, err)
		}
	}
	return err
}
Beispiel #7
0
func (p *ParticipanteRowItemThrift) writeField4(oprot thrift.TProtocol) (err error) {
	if p.IsSetPeso() {
		if err := oprot.WriteFieldBegin("peso", thrift.DOUBLE, 4); err != nil {
			return fmt.Errorf("%T write field begin error 4:peso: %s", p, err)
		}
		if err := oprot.WriteDouble(float64(*p.Peso)); err != nil {
			return fmt.Errorf("%T.peso (4) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 4:peso: %s", p, err)
		}
	}
	return err
}
Beispiel #8
0
func (p *Types) writeField4(oprot thrift.TProtocol) (err error) {
	if p.IsSetDoubleValue() {
		if err := oprot.WriteFieldBegin("double_value", thrift.DOUBLE, 4); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:double_value: ", p), err)
		}
		if err := oprot.WriteDouble(float64(*p.DoubleValue)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.double_value (4) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:double_value: ", p), err)
		}
	}
	return err
}