def _get_pb_likelihood(likelihood):
 likelihood_pb = image_annotator_pb2.Likelihood.Name(likelihood)
 return Likelihood[likelihood_pb]

def _get_pb_likelihood ( likelihood ) : likelihood_pb = image_annotator_pb2 . Likelihood . Name ( likelihood ) return Likelihood [ likelihood_pb ]
convert protobuf likelihood integer value to likelihood enum .