@@ -621,12 +621,11 @@ def mutate_row(
621
621
request .table_name = table_name
622
622
if row_key is not None :
623
623
request .row_key = row_key
624
+ if mutations is not None :
625
+ request .mutations = mutations
624
626
if app_profile_id is not None :
625
627
request .app_profile_id = app_profile_id
626
628
627
- if mutations :
628
- request .mutations .extend (mutations )
629
-
630
629
# Wrap the RPC method; this adds retry and timeout information,
631
630
# and friendly error handling.
632
631
rpc = self ._transport ._wrapped_methods [self ._transport .mutate_row ]
@@ -730,12 +729,11 @@ def mutate_rows(
730
729
731
730
if table_name is not None :
732
731
request .table_name = table_name
732
+ if entries is not None :
733
+ request .entries = entries
733
734
if app_profile_id is not None :
734
735
request .app_profile_id = app_profile_id
735
736
736
- if entries :
737
- request .entries .extend (entries )
738
-
739
737
# Wrap the RPC method; this adds retry and timeout information,
740
738
# and friendly error handling.
741
739
rpc = self ._transport ._wrapped_methods [self ._transport .mutate_rows ]
@@ -881,14 +879,13 @@ def check_and_mutate_row(
881
879
request .row_key = row_key
882
880
if predicate_filter is not None :
883
881
request .predicate_filter = predicate_filter
882
+ if true_mutations is not None :
883
+ request .true_mutations = true_mutations
884
+ if false_mutations is not None :
885
+ request .false_mutations = false_mutations
884
886
if app_profile_id is not None :
885
887
request .app_profile_id = app_profile_id
886
888
887
- if true_mutations :
888
- request .true_mutations .extend (true_mutations )
889
- if false_mutations :
890
- request .false_mutations .extend (false_mutations )
891
-
892
889
# Wrap the RPC method; this adds retry and timeout information,
893
890
# and friendly error handling.
894
891
rpc = self ._transport ._wrapped_methods [self ._transport .check_and_mutate_row ]
@@ -1005,12 +1002,11 @@ def read_modify_write_row(
1005
1002
request .table_name = table_name
1006
1003
if row_key is not None :
1007
1004
request .row_key = row_key
1005
+ if rules is not None :
1006
+ request .rules = rules
1008
1007
if app_profile_id is not None :
1009
1008
request .app_profile_id = app_profile_id
1010
1009
1011
- if rules :
1012
- request .rules .extend (rules )
1013
-
1014
1010
# Wrap the RPC method; this adds retry and timeout information,
1015
1011
# and friendly error handling.
1016
1012
rpc = self ._transport ._wrapped_methods [self ._transport .read_modify_write_row ]
0 commit comments