631631
632632struct ExportCSVConfig
633633 path:: String
634+ transaction_output_name:: String
634635 csv_source:: Union{Nothing,ExportCSVSource}
635636 csv_config:: Union{Nothing,CSVConfig}
636637 data_columns:: Vector{ExportCSVColumn}
@@ -642,12 +643,13 @@ struct ExportCSVConfig
642643 syntax_quotechar:: String
643644 syntax_escapechar:: String
644645end
645- ExportCSVConfig (;path = " " , csv_source = nothing , csv_config = nothing , data_columns = Vector {ExportCSVColumn} (), partition_size = zero (Int64), compression = " " , syntax_header_row = false , syntax_missing_string = " " , syntax_delim = " " , syntax_quotechar = " " , syntax_escapechar = " " ) = ExportCSVConfig (path, csv_source, csv_config, data_columns, partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar)
646- PB. default_values (:: Type{ExportCSVConfig} ) = (;path = " " , csv_source = nothing , csv_config = nothing , data_columns = Vector {ExportCSVColumn} (), partition_size = zero (Int64), compression = " " , syntax_header_row = false , syntax_missing_string = " " , syntax_delim = " " , syntax_quotechar = " " , syntax_escapechar = " " )
647- PB. field_numbers (:: Type{ExportCSVConfig} ) = (;path = 1 , csv_source = 10 , csv_config = 11 , data_columns = 2 , partition_size = 3 , compression = 4 , syntax_header_row = 5 , syntax_missing_string = 6 , syntax_delim = 7 , syntax_quotechar = 8 , syntax_escapechar = 9 )
646+ ExportCSVConfig (;path = " " , transaction_output_name = " " , csv_source = nothing , csv_config = nothing , data_columns = Vector {ExportCSVColumn} (), partition_size = zero (Int64), compression = " " , syntax_header_row = false , syntax_missing_string = " " , syntax_delim = " " , syntax_quotechar = " " , syntax_escapechar = " " ) = ExportCSVConfig (path, transaction_output_name , csv_source, csv_config, data_columns, partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar)
647+ PB. default_values (:: Type{ExportCSVConfig} ) = (;path = " " , transaction_output_name = " " , csv_source = nothing , csv_config = nothing , data_columns = Vector {ExportCSVColumn} (), partition_size = zero (Int64), compression = " " , syntax_header_row = false , syntax_missing_string = " " , syntax_delim = " " , syntax_quotechar = " " , syntax_escapechar = " " )
648+ PB. field_numbers (:: Type{ExportCSVConfig} ) = (;path = 1 , transaction_output_name = 12 , csv_source = 10 , csv_config = 11 , data_columns = 2 , partition_size = 3 , compression = 4 , syntax_header_row = 5 , syntax_missing_string = 6 , syntax_delim = 7 , syntax_quotechar = 8 , syntax_escapechar = 9 )
648649
649650function PB. decode (d:: PB.AbstractProtoDecoder , :: Type{<:ExportCSVConfig} , _endpos:: Int = 0 , _group:: Bool = false )
650651 path = " "
652+ transaction_output_name = " "
651653 csv_source = Ref {Union{Nothing,ExportCSVSource}} (nothing )
652654 csv_config = Ref {Union{Nothing,CSVConfig}} (nothing )
653655 data_columns = PB. BufferedVector {ExportCSVColumn} ()
@@ -662,6 +664,8 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:ExportCSVConfig}, _endpo
662664 field_number, wire_type = PB. decode_tag (d)
663665 if field_number == 1
664666 path = PB. decode (d, String)
667+ elseif field_number == 12
668+ transaction_output_name = PB. decode (d, String)
665669 elseif field_number == 10
666670 PB. decode! (d, csv_source)
667671 elseif field_number == 11
@@ -686,12 +690,13 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:ExportCSVConfig}, _endpo
686690 Base. skip (d, wire_type)
687691 end
688692 end
689- return ExportCSVConfig (path, csv_source[], csv_config[], data_columns[], partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar)
693+ return ExportCSVConfig (path, transaction_output_name, csv_source[], csv_config[], data_columns[], partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar)
690694end
691695
692696function PB. encode (e:: PB.AbstractProtoEncoder , x:: ExportCSVConfig )
693697 initpos = position (e. io)
694698 ! isempty (x. path) && PB. encode (e, 1 , x. path)
699+ ! isempty (x. transaction_output_name) && PB. encode (e, 12 , x. transaction_output_name)
695700 ! isnothing (x. csv_source) && PB. encode (e, 10 , x. csv_source)
696701 ! isnothing (x. csv_config) && PB. encode (e, 11 , x. csv_config)
697702 ! isempty (x. data_columns) && PB. encode (e, 2 , x. data_columns)
707712function PB. _encoded_size (x:: ExportCSVConfig )
708713 encoded_size = 0
709714 ! isempty (x. path) && (encoded_size += PB. _encoded_size (x. path, 1 ))
715+ ! isempty (x. transaction_output_name) && (encoded_size += PB. _encoded_size (x. transaction_output_name, 12 ))
710716 ! isnothing (x. csv_source) && (encoded_size += PB. _encoded_size (x. csv_source, 10 ))
711717 ! isnothing (x. csv_config) && (encoded_size += PB. _encoded_size (x. csv_config, 11 ))
712718 ! isempty (x. data_columns) && (encoded_size += PB. _encoded_size (x. data_columns, 2 ))
0 commit comments