(s protoreflect.FullName)
| 49 | } |
| 50 | |
| 51 | func wellKnownType(s protoreflect.FullName) string { |
| 52 | if s.Parent() == "google.protobuf" { |
| 53 | switch s.Name() { |
| 54 | case "Empty", "Any", |
| 55 | "BoolValue", "BytesValue", "StringValue", |
| 56 | "Int32Value", "UInt32Value", "FloatValue", |
| 57 | "Int64Value", "UInt64Value", "DoubleValue", |
| 58 | "Duration", "Timestamp", |
| 59 | "NullValue", "Struct", "Value", "ListValue": |
| 60 | return string(s.Name()) |
| 61 | } |
| 62 | } |
| 63 | return "" |
| 64 | } |
| 65 | |
| 66 | func isMessageSet(md protoreflect.MessageDescriptor) bool { |
| 67 | ms, ok := md.(interface{ IsMessageSet() bool }) |
no test coverage detected