@@ -621,12 +621,11 @@ def mutate_row(
621621 request .table_name = table_name
622622 if row_key is not None :
623623 request .row_key = row_key
624+ if mutations is not None :
625+ request .mutations = mutations
624626 if app_profile_id is not None :
625627 request .app_profile_id = app_profile_id
626628
627- if mutations :
628- request .mutations .extend (mutations )
629-
630629 # Wrap the RPC method; this adds retry and timeout information,
631630 # and friendly error handling.
632631 rpc = self ._transport ._wrapped_methods [self ._transport .mutate_row ]
@@ -730,12 +729,11 @@ def mutate_rows(
730729
731730 if table_name is not None :
732731 request .table_name = table_name
732+ if entries is not None :
733+ request .entries = entries
733734 if app_profile_id is not None :
734735 request .app_profile_id = app_profile_id
735736
736- if entries :
737- request .entries .extend (entries )
738-
739737 # Wrap the RPC method; this adds retry and timeout information,
740738 # and friendly error handling.
741739 rpc = self ._transport ._wrapped_methods [self ._transport .mutate_rows ]
@@ -881,14 +879,13 @@ def check_and_mutate_row(
881879 request .row_key = row_key
882880 if predicate_filter is not None :
883881 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
884886 if app_profile_id is not None :
885887 request .app_profile_id = app_profile_id
886888
887- if true_mutations :
888- request .true_mutations .extend (true_mutations )
889- if false_mutations :
890- request .false_mutations .extend (false_mutations )
891-
892889 # Wrap the RPC method; this adds retry and timeout information,
893890 # and friendly error handling.
894891 rpc = self ._transport ._wrapped_methods [self ._transport .check_and_mutate_row ]
@@ -1005,12 +1002,11 @@ def read_modify_write_row(
10051002 request .table_name = table_name
10061003 if row_key is not None :
10071004 request .row_key = row_key
1005+ if rules is not None :
1006+ request .rules = rules
10081007 if app_profile_id is not None :
10091008 request .app_profile_id = app_profile_id
10101009
1011- if rules :
1012- request .rules .extend (rules )
1013-
10141010 # Wrap the RPC method; this adds retry and timeout information,
10151011 # and friendly error handling.
10161012 rpc = self ._transport ._wrapped_methods [self ._transport .read_modify_write_row ]
0 commit comments