class LazyDescriptor
Defined at line 206 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
Public Methods
void Init ()
Init function to be called at init time of a descriptor containing
a LazyDescriptor.
Defined at line 210 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
const Descriptor * Get (const ServiceDescriptor * service)
Returns the current value of the descriptor, thread-safe. If SetLazy(...)
has been called, will do a one-time cross link of the type specified,
building the descriptor file that contains the type if necessary.
Defined at line 231 of file ../../third_party/protobuf/src/google/protobuf/descriptor.h
void Set (const Descriptor * descriptor)
Sets the value of the descriptor if it is known during the descriptor
building process. Not thread safe, should only be called during the
descriptor build process. Should not be called after SetLazy has been
called.
void SetLazy (absl::string_view name, const FileDescriptor * file)
Sets the information needed to lazily cross link the descriptor at a later
time, SetLazy is not thread safe, should be called only once at descriptor
build time if the symbol wasn't found and building of the file containing
that type is delayed because lazily_build_dependencies_ is set on the pool.
Should not be called after Set() has been called.