def _item_to_sub_for_client(iterator, sub_pb, topics):
 resource = MessageToDict(sub_pb)
 return Subscription.from_api_repr(resource, iterator.client, topics=topics)

def _item_to_sub_for_client ( iterator , sub_pb , topics ) : resource = MessageToDict ( sub_pb ) return Subscription . from_api_repr ( resource , iterator . client , topics = topics )
convert a subscription protobuf to the native object .