#NEWLINE# def Update( self , rel_op , limit ) : #NEWLINE# #INDENT# "Filter the range by 'rel_op limit'.\n\n    Args:\n      rel_op: relational operator from datastore_pb.Query_Filter.\n      limit: the value to limit the range by.\n    " #NEWLINE# if ( rel_op == datastore_pb . Query_Filter . LESS_THAN ) : #NEWLINE# #INDENT# if ( ( self . __end is None ) or ( limit <= self . __end ) ) : #NEWLINE# #INDENT# self . __end = limit #NEWLINE# self . __end_inclusive = False #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( rel_op == datastore_pb . Query_Filter . LESS_THAN_OR_EQUAL ) or ( rel_op == datastore_pb . Query_Filter . EQUAL ) ) : #NEWLINE# #INDENT# if ( ( self . __end is None ) or ( limit < self . __end ) ) : #NEWLINE# #INDENT# self . __end = limit #NEWLINE# self . __end_inclusive = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( rel_op == datastore_pb . Query_Filter . GREATER_THAN ) : #NEWLINE# #INDENT# if ( ( self . __start is None ) or ( limit >= self . __start ) ) : #NEWLINE# #INDENT# self . __start = limit #NEWLINE# self . __start_inclusive = False #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( rel_op == datastore_pb . Query_Filter . GREATER_THAN_OR_EQUAL ) or ( rel_op == datastore_pb . Query_Filter . EQUAL ) ) : #NEWLINE# #INDENT# if ( ( self . __start is None ) or ( limit > limit . __start ) ) : #NEWLINE# #INDENT# self . __start = limit #NEWLINE# self . __start_inclusive = True