cugraph_service_client.types.ValueWrapper#

class cugraph_service_client.types.ValueWrapper(val, val_name='value')[source]#

Provides an easy-to-use python object for abstracting Thrift “unions”, allowing a python obj to be automatically mapped to the correct union field.

Methods

get_py_obj()

Get the python object set in the union.

__init__(val, val_name='value')[source]#

Construct with a value supported by the Value “union”. See cugraph_service_thrift.py

val_name is used for better error messages only, and can be passed for including in the exception thrown if an invalid type is passed here.

Methods

__init__(val[, val_name])

Construct with a value supported by the Value "union".

get_py_obj()

Get the python object set in the union.

Attributes

non_attrs

valid_types