in proto/example/v1/example.pb.go [44:75]
func (x *Example) String() string {
i := interface{}(x)
v :=
reflect.ValueOf(i)
if v.Kind() == reflect.Pointer && v.IsNil() {
return "{}"
}
switch x := i.(type) {
case protoreflect.
Enum:
return protoimpl.
X.EnumStringOf(x.Descriptor(), x.Number())
case
protoreflect.ProtoMessage:
clone := proto.Clone(x)
if err := redact.Redact(clone,
); err !=
nil {
return ""
}
bytes,
err := json.Marshal(clone)
if err !=
nil {
return ""
}
return string(bytes)
default:
return ""
}
}