def _make_entity_from_pb(annotations): """Create an entity from a protobuf response. :type annotations: :class:`~google.cloud.grpc.vision.v1.image_annotator_pb2.EntityAnnotation` :param annotations: protobuf instance of ``EntityAnnotation``. :rtype: list :returns: List of ``EntityAnnotation``. """ return [EntityAnnotation.from_pb(annotation) for annotation in annotations]
def _make_entity_from_pb(annotations): """Create an entity from a gRPC response. :type annotations: :class:`~google.cloud.grpc.vision.v1.image_annotator_pb2.EntityAnnotation` :param annotations: protobuf instance of ``EntityAnnotation``. :rtype: list :returns: List of ``EntityAnnotation``. """ return [EntityAnnotation.from_pb(annotation) for annotation in annotations]