@@ -37,23 +37,22 @@ def test_it(self):
3737 unindexed_prop_pb = entity_pb .property .add ()
3838 unindexed_prop_pb .name = 'bar'
3939 unindexed_prop_pb .value .integer_value = 10
40- unindexed_prop_pb .value .indexed = False
40+ unindexed_prop_pb .value .exclude_from_indexes = True
4141
4242 list_prop_pb1 = entity_pb .property .add ()
4343 list_prop_pb1 .name = 'baz'
4444 list_pb1 = list_prop_pb1 .value .list_value
4545
4646 unindexed_value_pb = list_pb1 .add ()
4747 unindexed_value_pb .integer_value = 11
48- unindexed_value_pb .indexed = False
48+ unindexed_value_pb .exclude_from_indexes = True
4949
5050 list_prop_pb2 = entity_pb .property .add ()
5151 list_prop_pb2 .name = 'qux'
5252 list_pb2 = list_prop_pb2 .value .list_value
5353
5454 indexed_value_pb = list_pb2 .add ()
5555 indexed_value_pb .integer_value = 12
56- indexed_value_pb .indexed = True
5756
5857 entity = self ._callFUT (entity_pb )
5958 self .assertEqual (entity .kind , _KIND )
@@ -86,11 +85,10 @@ def test_mismatched_value_indexed(self):
8685
8786 unindexed_value_pb1 = list_pb .add ()
8887 unindexed_value_pb1 .integer_value = 10
89- unindexed_value_pb1 .indexed = False
88+ unindexed_value_pb1 .exclude_from_indexes = True
9089
9190 unindexed_value_pb2 = list_pb .add ()
9291 unindexed_value_pb2 .integer_value = 11
93- unindexed_value_pb2 .indexed = True
9492
9593 with self .assertRaises (ValueError ):
9694 self ._callFUT (entity_pb )
@@ -250,7 +248,7 @@ def test_inverts_to_protobuf(self):
250248 prop1 = original_pb .property .add ()
251249 prop1 .name = 'foo'
252250 prop1 .value .integer_value = 1337
253- prop1 .value .indexed = False
251+ prop1 .value .exclude_from_indexes = True
254252 # Add a string property.
255253 prop2 = original_pb .property .add ()
256254 prop2 .name = 'bar'
@@ -273,11 +271,11 @@ def test_inverts_to_protobuf(self):
273271 prop4 = original_pb .property .add ()
274272 prop4 .name = 'list-quux'
275273 list_val1 = prop4 .value .list_value .add ()
276- list_val1 .indexed = False
274+ list_val1 .exclude_from_indexes = True
277275 list_val1 .meaning = meaning = 22
278276 list_val1 .blob_value = b'\xe2 \x98 \x83 '
279277 list_val2 = prop4 .value .list_value .add ()
280- list_val2 .indexed = False
278+ list_val2 .exclude_from_indexes = True
281279 list_val2 .meaning = meaning
282280 list_val2 .blob_value = b'\xe2 \x98 \x85 '
283281
0 commit comments