MCPcopy
hub / github.com/gogo/protobuf / Marshaler

Interface Marshaler

proto/encode.go:184–186  ·  view source on GitHub ↗

Marshaler is the interface representing objects that can marshal themselves.

Source from the content-addressed store, hash-verified

182
183// Marshaler is the interface representing objects that can marshal themselves.
184type Marshaler interface {
185 Marshal() ([]byte, error)
186}
187
188// EncodeMessage writes the protocol buffer to the Buffer,
189// prefixed by a varint-encoded length.

Callers 28

writeAnyMethod · 0.65
MarshalTextFunction · 0.65
CompactTextFunction · 0.65
sizeMethod · 0.65
marshalMethod · 0.65
SizeFunction · 0.65
MarshalFunction · 0.65
MarshalMethod · 0.65
MarshalToStringMethod · 0.95
TestNidOptNativeJSONFunction · 0.95
TestNinOptNativeJSONFunction · 0.95
TestNidRepNativeJSONFunction · 0.95

Implementers 15

Durationtypes/duration.pb.go
FieldMasktypes/field_mask.pb.go
Timestamptypes/timestamp.pb.go
Apitypes/api.pb.go
Methodtypes/api.pb.go
Mixintypes/api.pb.go
Anytypes/any.pb.go
Emptytypes/empty.pb.go
SourceContexttypes/source_context.pb.go
Structtypes/struct.pb.go
Valuetypes/struct.pb.go
ListValuetypes/struct.pb.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…