
    Ѯh                     V    d dl Z d dlmZ  G d de j                  j                        Zy)    N)Sequencec                   `    e Zd ZU dZdZee   ed<   dee   fdZd Z	d Z
ded	efd
Zd Zd Zy)VectorzA class to represent Firestore Vector in python.

    Underlying object will be converted to a map representation in Firestore API.
     _valuevaluec                 \    t        |D cg c]  }t        |       c}      | _        y c c}w N)tuplefloatr   )selfr   vs      r/home/www/academy-backend.kofcorporation.com/venv/lib/python3.12/site-packages/google/cloud/firestore_v1/vector.py__init__zVector.__init__   s     u5!U1X565s   )c                      | j                   |   S r
   r   )r   args     r   __getitem__zVector.__getitem__   s    {{3    c                 ,    t        | j                        S r
   )lenr   r   s    r   __len__zVector.__len__"   s    4;;r   otherreturnc                 V    t        |t              sy| j                  |j                  k(  S )NF)
isinstancer   r   )r   r   s     r   __eq__zVector.__eq__%   s"    %({{ell**r   c                 :    dt        | j                        dd  dS )NzVector<   >)strr   r   s    r   __repr__zVector.__repr__*   s"    T[[)!B/022r   c                      d| j                   dS )N
__vector__)__type__r   r   r   s    r   to_map_valuezVector.to_map_value-   s    (4;;??r   N)__name__
__module____qualname____doc__r   r   r   __annotations__r   r   r   objectboolr   r$   r(   r   r   r   r   r      sO    
 !FHUO 7huo 7  +F +t +
3@r   r   )collectionstypingr   abcr   r   r   r   <module>r3      s%      @[__%% @r   