Home
last modified time | relevance | path

Searched refs:Marshaler (Results 1 – 7 of 7) sorted by relevance

/external/golang-protobuf/jsonpb/
Djsonpb_test.go56 marshaler = Marshaler{}
58 marshalerAllOptions = Marshaler{
410 marshaler Marshaler
421 {"enum-string flat object", Marshaler{},
423 {"enum-value pretty object", Marshaler{EnumsAsInts: true, Indent: " "},
427 {"repeated proto3 enum", Marshaler{},
433 {"repeated proto3 enum as int", Marshaler{EnumsAsInts: true},
440 {"empty value emitted", Marshaler{EmitDefaults: true}, &pb.Simple3{}, `{"dub":0}`},
441 {"empty repeated emitted", Marshaler{EmitDefaults: true}, &pb.SimpleSlice3{}, `{"slices":[]}`},
442 {"empty map emitted", Marshaler{EmitDefaults: true}, &pb.SimpleMap3{}, `{"stringy":{}}`},
[all …]
Djsonpb.go64 type Marshaler struct { struct
114 MarshalJSONPB(*Marshaler) ([]byte, error) argument
129 func (m *Marshaler) Marshal(out io.Writer, pb proto.Message) error { argument
143 func (m *Marshaler) MarshalToString(pb proto.Message) (string, error) { argument
174 func (m *Marshaler) marshalObject(out *errWriter, v proto.Message, indent, typeURL string) error { argument
402 func (m *Marshaler) writeSep(out *errWriter) { argument
410 func (m *Marshaler) marshalAny(out *errWriter, any proto.Message, indent string) error { argument
464 func (m *Marshaler) marshalTypeURL(out *errWriter, indent, typeURL string) error { argument
482 func (m *Marshaler) marshalField(out *errWriter, prop *proto.Properties, v reflect.Value, indent st… argument
500 func (m *Marshaler) marshalValue(out *errWriter, prop *proto.Properties, v reflect.Value, indent st… argument
/external/golang-protobuf/proto/
Dencode.go184 type Marshaler interface { interface
Dtable_marshal.go172 m := ptr.asPointerTo(u.typ).Interface().(Marshaler)
229 m := ptr.asPointerTo(u.typ).Interface().(Marshaler)
2694 if m, ok := pb.(Marshaler); ok {
2717 if m, ok := pb.(Marshaler); ok {
2745 if m, ok := pb.(Marshaler); ok {
Dproperties.go299 marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
Dall_test.go1365 var _ Marshaler = nnim.nni // verify it is truly a Marshaler
2516 (&jsonpb.Marshaler{}).MarshalToString(m)
/external/starlark-go/starlarkjson/
Djson.go106 case json.Marshaler: