models.entity_schema_proto_key_value_descriptor module

class models.entity_schema_proto_key_value_descriptor.EntitySchemaProtoKeyValueDescriptor(key_name=None, value_type=None)[source]

Bases: object

Implementation of the ‘EntitySchemaProto_KeyValueDescriptor’ model.

Specifies a key/value pair.

Attributes:

key_name (string): Specifies the name of a key. value_type (int): Specifies the type of the value that is associated

with the key. 0 specifies a value type of Int64. 1 specifies a value type of Double. 2 specifies a value type of String. 3 specifies a value type of Bytes.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.