class_docstr: Splits a message into a separaet chunk if its over a certain size.
class_docstr_tok: ["Splits","a","message","into","a","separaet","chunk","if","its","over","a","certain","size","."]
docstr: Creates a chunk for the entire proto and returns the original size.
docstr_tok: ["Creates","a","chunk","for","the","entire","proto","and","returns","the","original","size","."]
code: def build_chunks(self) -> int:
      """Creates a chunk for the entire proto and returns the original size."""
      if self.size_check(self.proto_size):
          new_proto = type(self._proto)()
          new_proto.MergeFrom(self._proto)
          self._proto.Clear()
          self.add_chunk(new_proto, [])
          return self.proto_size
      return 0
  
imports: from collections.abc import Sequence
  import itertools
  from typing import Optional, Type
  from google.protobuf import message
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.python.framework import tensor_util
  from tensorflow.tools.proto_splitter import constants
  from tensorflow.tools.proto_splitter import split
  from tensorflow.tools.proto_splitter import util
label_desc: Use image node_id 2 for calling the LargeMessageSplitter obj's underlying member method code with example usage: obj.build_chunks() and returns: int, self