def _to_gapic_feature(feature):
 return image_annotator_pb2.Feature(type=getattr(image_annotator_pb2.Feature, feature.feature_type), max_results=feature.max_results)

def _to_gapic_feature ( feature ) : return image_annotator_pb2 . Feature ( type = getattr ( image_annotator_pb2 . Feature , feature . feature_type ) , max_results = feature . max_results )
helper function to convert a feature to a grpc feature .