class_docstr: Build everything that is needed to install.
  
  This overrides the original distutils "build" command to to run gen_proto
  command before any sub_commands.
  
  build command is also invoked from bdist_wheel and install command, therefore
  this implementation covers the following commands:
    - pip install . (which invokes bdist_wheel)
    - python setup.py install (which invokes install command)
    - python setup.py bdist_wheel (which invokes bdist_wheel command)
class_docstr_tok: ["Build","everything","that","is","needed","to","install",".","This","overrides","the","original","distutils","``","build","''","command","to","to","run","gen_proto","command","before","any","sub_commands",".","build","command","is","also","invoked","from","bdist_wheel","and","install","command",",","therefore","this","implementation","covers","the","following","commands",":","-","pip","install",".","(","which","invokes","bdist_wheel",")","-","python","setup.py","install","(","which","invokes","install","command",")","-","python","setup.py","bdist_wheel","(","which","invokes","bdist_wheel","command",")"]
docstr: Predicate method for running GenProto command or not.
docstr_tok: ["Predicate","method","for","running","GenProto","command","or","not","."]
code: def _should_generate_proto(self):
      """Predicate method for running GenProto command or not."""
      return True
  
imports: import logging
  import os
  import shutil
  import subprocess
  import sys
  import setuptools
  from setuptools import find_namespace_packages
  from setuptools import setup
  from setuptools.command import develop
  from distutils.command import build
  from tfx import dependencies
  from tfx import version
  from wheel import bdist_wheel
  import package_config
label_desc: Use image node_id 1 for calling the _BuildCommand obj's underlying member method code with example usage: obj._should_generate_proto() and returns: True