Home
last modified time | relevance | path

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

/external/golang-protobuf/jsonpb/
Djsonpb_test.go56 marshaler = Marshaler{}
58 marshalerAllOptions = Marshaler{
342 marshaler Marshaler
353 {"enum-string flat object", Marshaler{},
355 {"enum-value pretty object", Marshaler{EnumsAsInts: true, Indent: " "},
359 {"repeated proto3 enum", Marshaler{},
365 {"repeated proto3 enum as int", Marshaler{EnumsAsInts: true},
372 {"empty value emitted", Marshaler{EmitDefaults: true}, &pb.Simple3{}, `{"dub":0}`},
373 {"empty repeated emitted", Marshaler{EmitDefaults: true}, &pb.SimpleSlice3{}, `{"slices":[]}`},
374 {"empty map emitted", Marshaler{EmitDefaults: true}, &pb.SimpleMap3{}, `{"stringy":{}}`},
[all …]
Djsonpb.go61 type Marshaler struct { struct
83 MarshalJSONPB(*Marshaler) ([]byte, error) argument
95 func (m *Marshaler) Marshal(out io.Writer, pb proto.Message) error { argument
101 func (m *Marshaler) MarshalToString(pb proto.Message) (string, error) { argument
127 func (m *Marshaler) marshalObject(out *errWriter, v proto.Message, indent, typeURL string) error { argument
330 func (m *Marshaler) writeSep(out *errWriter) { argument
338 func (m *Marshaler) marshalAny(out *errWriter, any proto.Message, indent string) error { argument
391 func (m *Marshaler) marshalTypeURL(out *errWriter, indent, typeURL string) error { argument
409 func (m *Marshaler) marshalField(out *errWriter, prop *proto.Properties, v reflect.Value, indent st… argument
427 func (m *Marshaler) marshalValue(out *errWriter, prop *proto.Properties, v reflect.Value, indent st… argument
/external/golang-protobuf/protoc-gen-go/testdata/
Dimp.pb.go.golden93 // ensure ImportedExtendable satisfies proto.Marshaler and proto.Unmarshaler
94 var _ proto.Marshaler = (*ImportedExtendable)(nil)
/external/golang-protobuf/proto/
Dencode.go224 type Marshaler interface { interface
232 if m, ok := pb.(Marshaler); ok {
263 if m, ok := pb.(Marshaler); ok {
291 if m, ok := pb.(Marshaler); ok {
552 m := structPointer_Interface(structp, p.stype).(Marshaler)
574 m := structPointer_Interface(structp, p.stype).(Marshaler)
974 m := structPointer_Interface(structp, p.stype).(Marshaler)
1008 m := structPointer_Interface(structp, p.stype).(Marshaler)
Dproperties.go589 marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
Dall_test.go1417 var _ Marshaler = nnim.nni // verify it is truly a Marshaler
/external/golang-protobuf/_conformance/
Dconformance.go92 var jsonMarshaler = jsonpb.Marshaler{
/external/golang-protobuf/protoc-gen-go/testdata/my_test/
Dtest.pb.go.golden450 // ensure OldReply satisfies proto.Marshaler and proto.Unmarshaler
451 var _ proto.Marshaler = (*OldReply)(nil)
Dtest.pb.go451 var _ proto.Marshaler = (*OldReply)(nil)
/external/golang-protobuf/proto/testdata/
Dtest.pb.go1625 var _ proto.Marshaler = (*MyMessageSet)(nil)