Skip to content

Commit

Permalink
补充文档
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Sep 9, 2024
1 parent 886c714 commit 2a810bd
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions source/users/advance_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,19 @@ Protobuf插件 - EnumValue插件
Protobuf插件 - Oneof插件(2.8.0版本及以上)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

+--------------------------------------------------+--------+--------------------------------------------------------------------+
| 插件名称 | 类型 | 插件功能 |
+==================================================+========+====================================================================+
| org.xresloader.oneof_description | string | oneof描述信息,可能会写入输出的header中和代码中 |
+--------------------------------------------------+--------+--------------------------------------------------------------------+
| org.xresloader.oneof_separator | string | |
+--------------------------------------------------+--------+--------------------------------------------------------------------+
| org.xresloader.oneof_not_null | string | 如果配置了字段映射,忽略此项为空的行(版本>=v2.14.0-rc2) |
+--------------------------------------------------+--------+--------------------------------------------------------------------+
| org.xresloader.oneof_allow_missing_in_plain_mode | bool | Plain模式下设置此字段可选,如果未设置则使用默认值 (版本>=2.16.0) |
+--------------------------------------------------+--------+--------------------------------------------------------------------+
+--------------------------------------------------+--------+------------------------------------------------------------------------------------+
| 插件名称 | 类型 | 插件功能 |
+==================================================+========+====================================================================================+
| org.xresloader.oneof_description | string | oneof描述信息,可能会写入输出的header中和代码中 |
+--------------------------------------------------+--------+------------------------------------------------------------------------------------+
| org.xresloader.oneof_separator | string | |
+--------------------------------------------------+--------+------------------------------------------------------------------------------------+
| org.xresloader.oneof_not_null | string | 如果配置了字段映射,忽略此项为空的行(版本>=v2.14.0-rc2) |
+--------------------------------------------------+--------+------------------------------------------------------------------------------------+
| org.xresloader.oneof_allow_missing_in_plain_mode | bool | Plain模式下设置此字段可选,如果未设置则使用默认值 (版本>=2.16.0) |
+--------------------------------------------------+--------+------------------------------------------------------------------------------------+
| org.xresloader.oneof_tag | string | 设置字段Tag,配合 ``--ignore-field-tags`` 选项可用于跳过某些数据。(版本>=2.16.0) |
+--------------------------------------------------+--------+------------------------------------------------------------------------------------+


仅导出部分字段
Expand Down

0 comments on commit 2a810bd

Please sign in to comment.