parameters: (self, cls)
docstring: Constructs the stub class.
  
      Args:
        cls: The class that will be constructed.
docstring_summary: Constructs the stub class.
docstring_tokens: Constructs the stub class .
function: def BuildServiceStub(self, cls):
      """Constructs the stub class.
  
      Args:
        cls: The class that will be constructed.
      """
  
      def _ServiceStubInit(stub, rpc_channel):
        stub.rpc_channel = rpc_channel
      self.cls = cls
      cls.__init__ = _ServiceStubInit
      for method in self.descriptor.methods:
        setattr(cls, method.name, self._GenerateStubMethod(method))
function_tokens: def BuildServiceStub ( self , cls ) : def _ServiceStubInit ( stub , rpc_channel ) : stub . rpc_channel = rpc_channel self . cls = cls cls . __init__ = _ServiceStubInit for method in self . descriptor . methods : setattr ( cls , method . name , self . _GenerateStubMethod ( method ) )