toBuilder method

GeneratedMessage toBuilder ()

Returns a writable copy of this message.

Implementation

// TODO(nichite): Return an actual builder object that lazily creates builders
// for sub-messages, instead of cloning everything here.
GeneratedMessage toBuilder() => clone();