class documentation

Typed search attribute key representation.

Use one of the for static methods here to create a key.

Static Method for_bool Create a 'Bool' search attribute type.
Static Method for_datetime Create a 'Datetime' search attribute type.
Static Method for_float Create a 'Double' search attribute type.
Static Method for_int Create an 'Int' search attribute type.
Static Method for_keyword Create a 'Keyword' search attribute type.
Static Method for_keyword_list Create a 'KeywordList' search attribute type.
Static Method for_text Create a 'Text' search attribute type.
Method value_set Create a search attribute update to set the given value on this key.
Method value_unset Create a search attribute update to unset the value on this key.
Property indexed_value_type Get the server index typed of the key
Property name Get the name of the key.
Property origin_value_type Get the Python type of value for the key without generics.
Property value_type Get the Python type of value for the key.
Static Method _from_metadata_type Undocumented
Static Method _guess_from_untyped_values Undocumented
Property _metadata_type Undocumented

Create a 'Bool' search attribute type.

Create a 'Datetime' search attribute type.

Create a 'Double' search attribute type.

Create an 'Int' search attribute type.

Create a 'Keyword' search attribute type.

@staticmethod
def for_keyword_list(name: str) -> SearchAttributeKey[Sequence[str]]: (source)

Create a 'KeywordList' search attribute type.

Create a 'Text' search attribute type.

Create a search attribute update to set the given value on this key.

Create a search attribute update to unset the value on this key.

Get the server index typed of the key

@property
origin_value_type: Type = (source)

Get the Python type of value for the key without generics.

Get the Python type of value for the key.

This may contain generics which cannot be used in isinstance. origin_value_type can be used instead.

@staticmethod
def _from_metadata_type(name: str, metadata_type: str) -> Optional[SearchAttributeKey]: (source)

Undocumented

@staticmethod
def _guess_from_untyped_values(name: str, vals: SearchAttributeValues) -> Optional[SearchAttributeKey]: (source)

Undocumented

@property
_metadata_type: str = (source)

Undocumented