状态¶
状态类¶
- class gs_interactive.client.status.Status(status: <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper object at 0x7f43155afaf0>, message: str)[源代码]¶
该类表示操作的状态,包含状态码和消息。
- __init__(status: <google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper object at 0x7f43155afaf0>, message: str)[源代码]¶
使用指定的状态码和消息构造一个新的Status对象。
- Parameters:
status (StatusCode) – 操作返回的状态码。
message (str) – 操作返回的消息。
- property get_message¶
获取操作返回的消息。