MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MakeDynamic

Method MakeDynamic

internal/json_test.cc:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67 template <typename T>
68 google::protobuf::Message* MakeDynamic() {
69 const auto* descriptor = ABSL_DIE_IF_NULL(
70 descriptor_pool()->FindMessageTypeByName(MessageTypeNameFor<T>()));
71 const auto* prototype =
72 ABSL_DIE_IF_NULL(message_factory()->GetPrototype(descriptor));
73 return ABSL_DIE_IF_NULL(prototype->New(arena()));
74 }
75
76 private:
77 google::protobuf::Arena arena_;

Callers

nothing calls this directly

Calls 1

NewMethod · 0.45

Tested by

no test coverage detected