// MarshalLogArray implements zapcore.ArrayMarshaler, enabling
// fast logging of _List_I32_Zapper.
762378
func (l _List_I32_Zapper) MarshalLogArray(enc zapcore.ArrayEncoder) (err error) {
	for _, v := range l {
		enc.AppendInt32(v)
	}
	return err
}
168936
func (v *Hello_Sink_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	if v.Snk != nil {
		err = multierr.Append(err, enc.AddObject("snk", v.Snk))
	}
	return err
}
1221292
func (m _Map_String_Bonk_Zapper) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	for k, v := range m {
		err = multierr.Append(err, enc.AddObject((string)(k), v))
	}
	return err
}
543439
func (l *listGenerator) zapMarshaler(
	g Generator,
	spec *compile.ListSpec,
	fieldValue string,
) (string, error) {
	name := zapperName(g, spec)
	if err := g.EnsureDeclared(
		`
			<$zapcore := import "go.uber.org/zap/zapcore">

			type <.Name> <typeReference .Type>
			<$l := newVar "l">
			<$v := newVar "v">
			<$enc := newVar "enc">
			// MarshalLogArray implements zapcore.ArrayMarshaler, enabling
			// fast logging of <.Name>.
			func (<$l> <.Name>) MarshalLogArray(<$enc> <$zapcore>.ArrayEncoder) (err error) {
				for _, <$v> := range <$l> {
					<zapEncodeBegin .Type.ValueSpec ->
						<$enc>.Append<zapEncoder .Type.ValueSpec>(<zapMarshaler .Type.ValueSpec $v>)
					<- zapEncodeEnd .Type.ValueSpec>
				}
				return err
			}
			`, struct {
			Name string
			Type *compile.ListSpec
		}{
			Name: name,
			Type: spec,
		},
	); err != nil {
		return "", err
	}
	return fmt.Sprintf("(%v)(%v)", name, fieldValue), nil
}
381465
func (p Procedure) MarshalLogObject(enc zapcore.ObjectEncoder) error {
	// Passing a Procedure as a zap.ObjectMarshaler allocates, so we shouldn't
	// do it on the request path.
	enc.AddString("name", p.Name)
	enc.AddString("service", p.Service)
	enc.AddString("encoding", string(p.Encoding))
	enc.AddString("signature", p.Signature)
	return enc.AddObject("handler", p.HandlerSpec)
}
591778
func (l _List_Set_I32_Zapper) MarshalLogArray(enc zapcore.ArrayEncoder) (err error) {
	for _, v := range l {
		err = multierr.Append(err, enc.AppendArray((_Set_I32_Zapper)(v)))
	}
	return err
}
387710
func (m *ProxyStatistics) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
1034198
func (v *Module) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	enc.AddString("importPath", v.ImportPath)
	enc.AddString("directory", v.Directory)
	enc.AddString("thriftFilePath", v.ThriftFilePath)
	return err
}
622029
func (v *NestedMixedx2) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	if v.IntSetList != nil {
		err = multierr.Append(err, enc.AddArray("int_set_list", (_List_Set_I32_Zapper)(v.IntSetList)))
	}
	if v.MapIntStrset != nil {
		err = multierr.Append(err, enc.AddArray("map_int_strset", (_Map_I32_Set_String_Zapper)(v.MapIntStrset)))
	}
	if v.MapIntStrsetList != nil {
		err = multierr.Append(err, enc.AddArray("map_int_strset_list", (_List_Map_I32_Set_String_Zapper)(v.MapIntStrsetList)))
	}
	return err
}
904024
func (v *Hello_Echo_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	if v.Echo != nil {
		err = multierr.Append(err, enc.AddObject("echo", v.Echo))
	}
	return err
}
639900
func (v *Ping) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	enc.AddString("beep", v.Beep)
	return err
}
1292092
func (v *HandshakeRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	return err
}
277277
func (v *NestedListsI32x3) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	if v.Integerlist != nil {
		err = multierr.Append(err, enc.AddArray("integerlist", (_List_List_List_I32_Zapper)(v.Integerlist)))
	}
	return err
}
1166550
func (v *StructB) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	if v.Aa != nil {
		err = multierr.Append(err, enc.AddObject("aa", v.Aa))
	}
	err = multierr.Append(err, enc.AddObject("ab", v.Ab))
	return err
}
173240
func (a AggArray) MarshalJSON() ([]byte, error) {
	aggsMap := make(map[string]Aggregation)

	for _, subAgg := range a {
		aggsMap[subAgg.Key] = subAgg.Aggregation
	}

	return json.Marshal(aggsMap)
}
386906
func (v *Echo_Echo_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	if v.Ping != nil {
		err = multierr.Append(err, enc.AddObject("ping", v.Ping))
	}
	return err
}
73092
func (v *GenerateServiceRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	err = multierr.Append(err, enc.AddArray("rootServices", (_List_ServiceID_Zapper)(v.RootServices)))
	err = multierr.Append(err, enc.AddArray("services", (_Map_ServiceID_Service_Zapper)(v.Services)))
	err = multierr.Append(err, enc.AddArray("modules", (_Map_ModuleID_Module_Zapper)(v.Modules)))
	enc.AddString("packagePrefix", v.PackagePrefix)
	enc.AddString("thriftRoot", v.ThriftRoot)
	return err
}