@staticmethod
def encode(error_code_protobuf_object, error_code_object: 'ErrorCode') ->None:
    """
        Encode an instance of this class into the protocol buffer object.

        The protocol buffer object in the error_code_protobuf_object argument is matched with the instance of this class in the 'error_code_object' argument.

        :param error_code_protobuf_object: the protocol buffer object whose type corresponds with this class.
        :param error_code_object: an instance of this class to be encoded in the protocol buffer object.
        :return: None
        """
    error_code_protobuf_object.error_code = error_code_object.value
