

def add_portable_array_field(self, field_name, class_def):
    if ((class_def.class_id is None) or (class_def.class_id == 0)):
        raise ValueError('Portable class id cannot be zero!')
    self._add_field_by_type(field_name, FieldType.PORTABLE_ARRAY, class_def.factory_id, class_def.class_id)
    return self

dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/serialization/portable/classdef.py ClassDefinitionBuilder.add_portable_array_field/original