|
|
@@ -42,6 +42,9 @@ func (t *goEnum) New(n protoreflect.EnumNumber) protoreflect.ProtoEnum {
|
|
|
}
|
|
|
return e
|
|
|
}
|
|
|
+func (t *goEnum) Format(s fmt.State, r rune) {
|
|
|
+ formatDesc(s, r, t)
|
|
|
+}
|
|
|
|
|
|
// GoMessage creates a new protoreflect.MessageType by combining the provided
|
|
|
// protoreflect.MessageDescriptor with the provided constructor function.
|
|
|
@@ -74,6 +77,9 @@ func (t *goMessage) New() protoreflect.ProtoMessage {
|
|
|
}
|
|
|
return m
|
|
|
}
|
|
|
+func (t *goMessage) Format(s fmt.State, r rune) {
|
|
|
+ formatDesc(s, r, t)
|
|
|
+}
|
|
|
|
|
|
// GoExtension creates a new protoreflect.ExtensionType.
|
|
|
//
|
|
|
@@ -187,6 +193,9 @@ func (t *goExtension) InterfaceOf(pv protoreflect.Value) interface{} {
|
|
|
}
|
|
|
return v
|
|
|
}
|
|
|
+func (t *goExtension) Format(s fmt.State, r rune) {
|
|
|
+ formatDesc(s, r, t)
|
|
|
+}
|
|
|
func (t *goExtension) lazyInit() {
|
|
|
t.once.Do(func() {
|
|
|
switch t.Cardinality() {
|