class_docstr: An RpcController mediates a single method call.
  
  The primary purpose of the controller is to provide a way to manipulate
  settings specific to the RPC implementation and to find out about RPC-level
  errors. The methods provided by the RpcController interface are intended
  to be a "least common denominator" set of features which we expect all
  implementations to support.  Specific implementations may provide more
  advanced features (e.g. deadline propagation).
class_docstr_tok: ["An","RpcController","mediates","a","single","method","call",".","The","primary","purpose","of","the","controller","is","to","provide","a","way","to","manipulate","settings","specific","to","the","RPC","implementation","and","to","find","out","about","RPC-level","errors",".","The","methods","provided","by","the","RpcController","interface","are","intended","to","be","a","``","least","common","denominator","''","set","of","features","which","we","expect","all","implementations","to","support",".","Specific","implementations","may","provide","more","advanced","features","(","e.g",".","deadline","propagation",")","."]
docstr: Sets a failure reason.
  
  Causes Failed() to return true on the client side.  "reason" will be
  incorporated into the message returned by ErrorText().  If you find
  you need to return machine-readable information about failures, you
  should incorporate it into your response protocol buffer and should
  NOT call SetFailed().
docstr_tok: ["Sets","a","failure","reason",".","Causes","Failed","(",")","to","return","true","on","the","client","side",".","``","reason","''","will","be","incorporated","into","the","message","returned","by","ErrorText","(",")",".","If","you","find","you","need","to","return","machine-readable","information","about","failures",",","you","should","incorporate","it","into","your","response","protocol","buffer","and","should","NOT","call","SetFailed","(",")","."]
code: def SetFailed(self, reason):
      """Sets a failure reason.
  
      Causes Failed() to return true on the client side.  "reason" will be
      incorporated into the message returned by ErrorText().  If you find
      you need to return machine-readable information about failures, you
      should incorporate it into your response protocol buffer and should
      NOT call SetFailed().
      """
      raise NotImplementedError
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/protobuf/python/google/protobuf/service.py
label_desc: Use image node_id 5 for calling the RpcController obj's underlying member method code with example usage: obj.SetFailed(reason) without return types