xia_engine_bigquery.proto.DocToProto
- class xia_engine_bigquery.proto.DocToProto
Bases:
objectXIA Document to Protobuf Message Class
Attention
The target protobuf format is related to Bigquery implementation
- __init__()
Methods
__init__()get_proto(document_class[, is_log_table])Get Proto Buf message class from document class
Attributes
MESSAGEREFERENCElibrarytype_dict- classmethod get_proto(document_class: type, is_log_table: bool = False)
Get Proto Buf message class from document class
- Parameters
document_class – Document class
is_log_table (bool) – it is a log table, should add extra information
- Returns
message_class