MCPcopy
hub / github.com/protocolbuffers/protobuf-go / MessageStringOf

Method MessageStringOf

internal/impl/api_export.go:175–177  ·  view source on GitHub ↗

MessageStringOf returns the message value as a string, which is the message serialized in the protobuf text format.

(m protoreflect.ProtoMessage)

Source from the content-addressed store, hash-verified

173// MessageStringOf returns the message value as a string,
174// which is the message serialized in the protobuf text format.
175func (Export) MessageStringOf(m protoreflect.ProtoMessage) string {
176 return prototext.MarshalOptions{Multiline: false}.Format(m)
177}

Callers 15

StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected