#NEWLINE# def to_protobuf( self ) : #NEWLINE# #INDENT# from gcloud.datastore._generated import entity_pb2 #NEWLINE# key = self . _key = entity_pb2 . Key ( ) #NEWLINE# element = key . path . add ( ) #NEWLINE# element . kind = self . _kind #NEWLINE# if ( element . _id is not None ) : #NEWLINE# #INDENT# element . id = self . _id #NEWLINE# #UNINDENT# return key