Пример #1
0
func (p *UpdateResult) writeField0(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("success", thrift.BOOL, 0); err != nil {
		return fmt.Errorf("%T write field begin error 0:success: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.Success)); err != nil {
		return fmt.Errorf("%T.success (0) field write error: %s", p)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 0:success: %s", p, err)
	}
	return err
}
Пример #2
0
func (p *GetPrivateMessageListArgs) writeField5(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("isReversed", thrift.BOOL, 5); err != nil {
		return fmt.Errorf("%T write field begin error 5:isReversed: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.IsReversed)); err != nil {
		return fmt.Errorf("%T.isReversed (5) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 5:isReversed: %s", p, err)
	}
	return err
}
Пример #3
0
func (p *GetAccessableGroupResourcesArgs) writeField8(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("isReversed", thrift.BOOL, 8); err != nil {
		return fmt.Errorf("%T write field begin error 8:isReversed: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.IsReversed)); err != nil {
		return fmt.Errorf("%T.isReversed (8) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 8:isReversed: %s", p, err)
	}
	return err
}
Пример #4
0
func (p *GetGroupMessagesArgs) writeField4(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("isReversed", thrift.BOOL, 4); err != nil {
		return fmt.Errorf("%T write field begin error 4:isReversed: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.IsReversed)); err != nil {
		return fmt.Errorf("%T.isReversed (4) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 4:isReversed: %s", p, err)
	}
	return err
}
Пример #5
0
func (p *Person) writeField8(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("Active", thrift.BOOL, 8); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:Active: ", p), err)
	}
	if err := oprot.WriteBool(bool(p.Active)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.Active (8) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 8:Active: ", p), err)
	}
	return err
}
Пример #6
0
func (p *Coffee) writeField5(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("iced", thrift.BOOL, 5); err != nil {
		return fmt.Errorf("%T write field begin error 5:iced: %s", p, err)
	}
	if err := oprot.WriteBool(bool(p.Iced)); err != nil {
		return fmt.Errorf("%T.iced (5) field write error: %s", p, err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return fmt.Errorf("%T write field end error 5:iced: %s", p, err)
	}
	return err
}
func (p *Student) writeField3(oprot thrift.TProtocol) (err error) {
	if err := oprot.WriteFieldBegin("ssex", thrift.BOOL, 3); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:ssex: ", p), err)
	}
	if err := oprot.WriteBool(bool(p.Ssex)); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T.ssex (3) field write error: ", p), err)
	}
	if err := oprot.WriteFieldEnd(); err != nil {
		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:ssex: ", p), err)
	}
	return err
}
Пример #8
0
func (p *ParticipanteRowItemThrift) writeField6(oprot thrift.TProtocol) (err error) {
	if p.IsSetCessouHabitoFumar() {
		if err := oprot.WriteFieldBegin("cessouHabitoFumar", thrift.BOOL, 6); err != nil {
			return fmt.Errorf("%T write field begin error 6:cessouHabitoFumar: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.CessouHabitoFumar)); err != nil {
			return fmt.Errorf("%T.cessouHabitoFumar (6) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 6:cessouHabitoFumar: %s", p, err)
		}
	}
	return err
}
Пример #9
0
func (p *ParticipanteRowItemThrift) writeField3(oprot thrift.TProtocol) (err error) {
	if p.IsSetAvaliacaoAlterada() {
		if err := oprot.WriteFieldBegin("avaliacaoAlterada", thrift.BOOL, 3); err != nil {
			return fmt.Errorf("%T write field begin error 3:avaliacaoAlterada: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.AvaliacaoAlterada)); err != nil {
			return fmt.Errorf("%T.avaliacaoAlterada (3) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 3:avaliacaoAlterada: %s", p, err)
		}
	}
	return err
}
func (p *DcacheServicePutResult) writeField0(oprot thrift.TProtocol) (err error) {
	if p.IsSetSuccess() {
		if err := oprot.WriteFieldBegin("success", thrift.BOOL, 0); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
		}
		if err := oprot.WriteBool(bool(*p.Success)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.success (0) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
		}
	}
	return err
}
Пример #11
0
func (p *BootstrapSettings) writeField7(oprot thrift.TProtocol) (err error) {
	if p.IsSetEnableSupportTickets() {
		if err := oprot.WriteFieldBegin("enableSupportTickets", thrift.BOOL, 7); err != nil {
			return fmt.Errorf("%T write field begin error 7:enableSupportTickets: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.EnableSupportTickets)); err != nil {
			return fmt.Errorf("%T.enableSupportTickets (7) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 7:enableSupportTickets: %s", p, err)
		}
	}
	return err
}
Пример #12
0
func (p *BootstrapSettings) writeField12(oprot thrift.TProtocol) (err error) {
	if p.IsSetEnableLinkedInSharing() {
		if err := oprot.WriteFieldBegin("enableLinkedInSharing", thrift.BOOL, 12); err != nil {
			return fmt.Errorf("%T write field begin error 12:enableLinkedInSharing: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.EnableLinkedInSharing)); err != nil {
			return fmt.Errorf("%T.enableLinkedInSharing (12) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 12:enableLinkedInSharing: %s", p, err)
		}
	}
	return err
}
Пример #13
0
func (p *FichaVisitaDomiciliarChildThrift) writeField10(oprot thrift.TProtocol) (err error) {
	if p.IsSetStForaArea() {
		if err := oprot.WriteFieldBegin("stForaArea", thrift.BOOL, 10); err != nil {
			return fmt.Errorf("%T write field begin error 10:stForaArea: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.StForaArea)); err != nil {
			return fmt.Errorf("%T.stForaArea (10) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 10:stForaArea: %s", p, err)
		}
	}
	return err
}
Пример #14
0
func (p *Types) writeField5(oprot thrift.TProtocol) (err error) {
	if p.IsSetBoolValue() {
		if err := oprot.WriteFieldBegin("bool_value", thrift.BOOL, 5); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:bool_value: ", p), err)
		}
		if err := oprot.WriteBool(bool(*p.BoolValue)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.bool_value (5) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:bool_value: ", p), err)
		}
	}
	return err
}
Пример #15
0
func (p *Span) writeField9(oprot thrift.TProtocol) (err error) {
	if p.IsSetDebug() {
		if err := oprot.WriteFieldBegin("debug", thrift.BOOL, 9); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:debug: ", p), err)
		}
		if err := oprot.WriteBool(bool(p.Debug)); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T.debug (9) field write error: ", p), err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:debug: ", p), err)
		}
	}
	return err
}
Пример #16
0
func (p *FichaProcedimentoChildThrift) writeField7(oprot thrift.TProtocol) (err error) {
	if p.IsSetStatusEscutaInicialOrientacao() {
		if err := oprot.WriteFieldBegin("statusEscutaInicialOrientacao", thrift.BOOL, 7); err != nil {
			return fmt.Errorf("%T write field begin error 7:statusEscutaInicialOrientacao: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.StatusEscutaInicialOrientacao)); err != nil {
			return fmt.Errorf("%T.statusEscutaInicialOrientacao (7) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 7:statusEscutaInicialOrientacao: %s", p, err)
		}
	}
	return err
}
Пример #17
0
func (p *AuthenticationResult) writeField8(oprot thrift.TProtocol) (err error) {
	if p.IsSetSecondFactorRequired() {
		if err := oprot.WriteFieldBegin("secondFactorRequired", thrift.BOOL, 8); err != nil {
			return fmt.Errorf("%T write field begin error 8:secondFactorRequired: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.SecondFactorRequired)); err != nil {
			return fmt.Errorf("%T.secondFactorRequired (8) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 8:secondFactorRequired: %s", p, err)
		}
	}
	return err
}
Пример #18
0
func (p *BootstrapSettings) writeField13(oprot thrift.TProtocol) (err error) {
	if p.IsSetEnablePublicNotebooks() {
		if err := oprot.WriteFieldBegin("enablePublicNotebooks", thrift.BOOL, 13); err != nil {
			return fmt.Errorf("%T write field begin error 13:enablePublicNotebooks: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.EnablePublicNotebooks)); err != nil {
			return fmt.Errorf("%T.enablePublicNotebooks (13) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 13:enablePublicNotebooks: %s", p, err)
		}
	}
	return err
}
Пример #19
0
func (p *ParticipanteRowItemThrift) writeField7(oprot thrift.TProtocol) (err error) {
	if p.IsSetAbandonouGrupo() {
		if err := oprot.WriteFieldBegin("abandonouGrupo", thrift.BOOL, 7); err != nil {
			return fmt.Errorf("%T write field begin error 7:abandonouGrupo: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.AbandonouGrupo)); err != nil {
			return fmt.Errorf("%T.abandonouGrupo (7) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 7:abandonouGrupo: %s", p, err)
		}
	}
	return err
}
Пример #20
0
func (p *EnderecoLocalPermanenciaThrift) writeField14(oprot thrift.TProtocol) (err error) {
	if p.IsSetStForaArea() {
		if err := oprot.WriteFieldBegin("stForaArea", thrift.BOOL, 14); err != nil {
			return fmt.Errorf("%T write field begin error 14:stForaArea: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.StForaArea)); err != nil {
			return fmt.Errorf("%T.stForaArea (14) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 14:stForaArea: %s", p, err)
		}
	}
	return err
}
Пример #21
0
func (p *FichaVisitaDomiciliarChildThrift) writeField6(oprot thrift.TProtocol) (err error) {
	if p.IsSetStatusVisitaCompartilhadaOutroProfissional() {
		if err := oprot.WriteFieldBegin("statusVisitaCompartilhadaOutroProfissional", thrift.BOOL, 6); err != nil {
			return fmt.Errorf("%T write field begin error 6:statusVisitaCompartilhadaOutroProfissional: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.StatusVisitaCompartilhadaOutroProfissional)); err != nil {
			return fmt.Errorf("%T.statusVisitaCompartilhadaOutroProfissional (6) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 6:statusVisitaCompartilhadaOutroProfissional: %s", p, err)
		}
	}
	return err
}
Пример #22
0
func (p *BootstrapSettings) writeField10(oprot thrift.TProtocol) (err error) {
	if p.IsSetEnableSponsoredAccounts() {
		if err := oprot.WriteFieldBegin("enableSponsoredAccounts", thrift.BOOL, 10); err != nil {
			return fmt.Errorf("%T write field begin error 10:enableSponsoredAccounts: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.EnableSponsoredAccounts)); err != nil {
			return fmt.Errorf("%T.enableSponsoredAccounts (10) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 10:enableSponsoredAccounts: %s", p, err)
		}
	}
	return err
}
Пример #23
0
func (p *EnderecoLocalPermanenciaThrift) writeField11(oprot thrift.TProtocol) (err error) {
	if p.IsSetStSemNumero() {
		if err := oprot.WriteFieldBegin("stSemNumero", thrift.BOOL, 11); err != nil {
			return fmt.Errorf("%T write field begin error 11:stSemNumero: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.StSemNumero)); err != nil {
			return fmt.Errorf("%T.stSemNumero (11) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 11:stSemNumero: %s", p, err)
		}
	}
	return err
}
Пример #24
0
func (p *FichaAtendimentoOdontologicoChildThrift) writeField5(oprot thrift.TProtocol) (err error) {
	if p.IsSetNecessidadesEspeciais() {
		if err := oprot.WriteFieldBegin("necessidadesEspeciais", thrift.BOOL, 5); err != nil {
			return fmt.Errorf("%T write field begin error 5:necessidadesEspeciais: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.NecessidadesEspeciais)); err != nil {
			return fmt.Errorf("%T.necessidadesEspeciais (5) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 5:necessidadesEspeciais: %s", p, err)
		}
	}
	return err
}
Пример #25
0
func (p *FichaAtendimentoOdontologicoChildThrift) writeField4(oprot thrift.TProtocol) (err error) {
	if p.IsSetGestante() {
		if err := oprot.WriteFieldBegin("gestante", thrift.BOOL, 4); err != nil {
			return fmt.Errorf("%T write field begin error 4:gestante: %s", p, err)
		}
		if err := oprot.WriteBool(bool(*p.Gestante)); err != nil {
			return fmt.Errorf("%T.gestante (4) field write error: %s", p, err)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 4:gestante: %s", p, err)
		}
	}
	return err
}
Пример #26
0
func (p *BootstrapSettings) writeField6(oprot thrift.TProtocol) (err error) {
	if p.IsSetEnableGiftSubscriptions() {
		if err := oprot.WriteFieldBegin("enableGiftSubscriptions", thrift.BOOL, 6); err != nil {
			return fmt.Errorf("%T write field begin error 6:enableGiftSubscriptions: %s", p, err)
		}
		if err := oprot.WriteBool(bool(p.EnableGiftSubscriptions)); err != nil {
			return fmt.Errorf("%T.enableGiftSubscriptions (6) field write error: %s", p)
		}
		if err := oprot.WriteFieldEnd(); err != nil {
			return fmt.Errorf("%T write field end error 6:enableGiftSubscriptions: %s", p, err)
		}
	}
	return err
}