HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib/python3.9/site-packages/google/protobuf/internal/__pycache__/containers.cpython-39.pyc
a

x��g%c�@sdZdZddlZzddlmZWney:ddlZYn0ejddkr�Gdd�de	�Z
Gdd�de
�Zej
�e
�ej�e�nejZGd	d
�d
e	�Z
ej�e
�Gdd�de
�ZGd
d�de
�ZGdd�de�ZGdd�de�ZGdd�de	�ZGdd�de	�ZGdd�de	�ZdS)a�Contains container classes to represent different protocol buffer types.

This file defines container classes which represent categories of protocol
buffer field types which need extra maintenance. Currently these categories
are:

-   Repeated scalar fields - These are all repeated fields which aren't
    composite (e.g. they are of simple types like int32, string, etc).
-   Repeated composite fields - Repeated fields which are composite. This
    includes groups and nested messages.
z[email protected] (Petar Petrov)�N�c@sfeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdZdd�Z
dd�ZdS)�Mapping�NcCs&z
||WSty |YS0dS�N��KeyError��self�key�defaultrr�G/usr/lib/python3.9/site-packages/google/protobuf/internal/containers.py�getLs
zMapping.getcCs*z||Wnty YdS0dSdS)NFTr�r	r
rrr�__contains__Rs
zMapping.__contains__cCst|�Sr)�iter�r	rrr�iterkeysZszMapping.iterkeysccs|D]}||VqdSrrrrrr�
itervalues]szMapping.itervaluesccs|D]}|||fVqdSrrrrrr�	iteritemsaszMapping.iteritemscCst|�Sr)�listrrrr�keyseszMapping.keyscs�fdd��D�S)Ncsg|]}|�|f�qSrr��.0r
rrr�
<listcomp>i�z!Mapping.items.<locals>.<listcomp>rrrrr�itemshsz
Mapping.itemscs�fdd��D�S)Ncsg|]}�|�qSrrrrrrrlrz"Mapping.values.<locals>.<listcomp>rrrrr�valueskszMapping.valuescCs(t|tj�stSt|���t|���kSr)�
isinstance�collections_abcr�NotImplemented�dictr�r	�otherrrr�__eq__qszMapping.__eq__cCs
||kSrrr!rrr�__ne__vszMapping.__ne__)N)�__name__�
__module__�__qualname__�	__slots__r
rrrrrrr�__hash__r#r$rrrrrIs
rc@sDeZdZdZe�Zefdd�Zdd�Zdd�Zdd	�Z	d
dd�Z
d
S)�MutableMappingrcCs>z||}Wn"ty.||jur&�|YS0||=|SdSr)r�_MutableMapping__marker)r	r
r�valuerrr�pop~s

zMutableMapping.popcCs>ztt|��}Wnty&t�Yn0||}||=||fSr)�nextr�
StopIterationr�r	r
r,rrr�popitem�s
zMutableMapping.popitemcCs&z|��qWnty Yn0dSr)r1rrrrr�clear�szMutableMapping.clearcOs�t|�dkr td�t|����n|s,td��|d}t|�dkrH|dnd}t|t�rn|D]}||||<qZn<t|d�r�|��D]}||||<q�n|D]\}}|||<q�|��D]\}}|||<q�dS)N�z8update() takes at most 2 positional arguments ({} given)z,update() takes at least 1 argument (0 given)r�rr)�len�	TypeError�formatrr�hasattrrr)�args�kwdsr	r"r
r,rrr�update�s$�


zMutableMapping.updateNcCs*z
||WSty$|||<Yn0|Srrrrrr�
setdefault�s

zMutableMapping.setdefault)N)r%r&r'r(�objectr+r-r1r2r;r<rrrrr*ys	r*c@sPeZdZdZddgZdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�ZdS)�
BaseContainerzBase container class.�_message_listener�_valuescCs||_g|_dS)z�
    Args:
      message_listener: A MessageListener implementation.
        The RepeatedScalarFieldContainer will call this object's
        Modified() method when it is modified.
    N)r?r@)r	�message_listenerrrr�__init__�szBaseContainer.__init__cCs
|j|S)z$Retrieves item by the specified key.�r@rrrr�__getitem__�szBaseContainer.__getitem__cCs
t|j�S)z0Returns the number of elements in the container.�r5r@rrrr�__len__�szBaseContainer.__len__cCs
||kS)z3Checks if another instance isn't equal to this one.rr!rrrr$�szBaseContainer.__ne__cCstd��dS)Nzunhashable object)r6rrrrr)�szBaseContainer.__hash__cCs
t|j�Sr��reprr@rrrr�__repr__�szBaseContainer.__repr__cOs,d|vr|�d�|d<|jj|i|��dS)NZ
sort_function�cmp)r-r@�sort)r	r9�kwargsrrrrK�szBaseContainer.sortN)r%r&r'�__doc__r(rBrDrFr$r)rIrKrrrrr>�s
r>cs�eZdZdZdgZ�fdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
ddd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Z�ZS)�RepeatedScalarFieldContainerzGSimple, type-checked, list-like container for holding repeated scalars.�
_type_checkercstt|��|�||_dS)a"Args:

      message_listener: A MessageListener implementation. The
      RepeatedScalarFieldContainer will call this object's Modified() method
      when it is modified.
      type_checker: A type_checkers.ValueChecker instance to run on elements
      inserted into this container.
    N)�superrNrBrO)r	rAZtype_checker��	__class__rrrB�s	z%RepeatedScalarFieldContainer.__init__cCs*|j�|j�|��|jjs&|j��dS)z6Appends an item to the list. Similar to list.append().N)r@�appendrO�
CheckValuer?�dirty�Modified�r	r,rrrrSsz#RepeatedScalarFieldContainer.appendcCs,|j�||j�|��|jjs(|j��dS)zEInserts the item at the specified position. Similar to list.insert().N)r@�insertrOrTr?rUrVr0rrrrXsz#RepeatedScalarFieldContainer.insertcsh|durdSzt|�}Wnty6|s0YdS�Yn0�fdd�|D�}|rZ�j�|��j��dS)zBExtends by appending the given iterable. Similar to list.extend().Ncsg|]}�j�|��qSr)rOrT)r�elemrrrrrz7RepeatedScalarFieldContainer.extend.<locals>.<listcomp>)rr6r@�extendr?rV)r	�elem_seqZ
elem_seq_iter�
new_valuesrrrrZsz#RepeatedScalarFieldContainer.extendcCs|j�|j�|j��dS)z�Appends the contents of another repeated field of the same type to this
    one. We do not check the types of the individual fields.
    N)r@rZr?rVr!rrr�	MergeFromsz&RepeatedScalarFieldContainer.MergeFromcCs|j�|�|j��dS�z8Removes an item from the list. Similar to list.remove().N�r@�remover?rV�r	rYrrrr`&sz#RepeatedScalarFieldContainer.remove���cCs|j|}|�|�|S�zDRemoves and returns an item at a given index. Similar to list.pop().�r@�__delitem__r0rrrr-+s

z RepeatedScalarFieldContainer.popcCsPt|t�r0|jdurtd��|�|j|j|�n|j�|�|j	|<|j
��dS)z(Sets the item on the specified position.NzExtended slices not supported)r�slice�step�
ValueError�__setslice__�start�stoprOrTr@r?rVr0rrr�__setitem__1s

z(RepeatedScalarFieldContainer.__setitem__cCs|j||�S�zARetrieves the subset of items from between the specified indices.rC�r	rjrkrrr�__getslice__;sz)RepeatedScalarFieldContainer.__getslice__cCs<g}|D]}|�|j�|��q||j||�<|j��dS)z<Sets the subset of items from between the specified indices.N)rSrOrTr@r?rV)r	rjrkrr\r,rrrri?s
z)RepeatedScalarFieldContainer.__setslice__cCs|j|=|j��dS�z+Deletes the item at the specified position.N�r@r?rVrrrrreGsz(RepeatedScalarFieldContainer.__delitem__cCs|j||�=|j��dS�z?Deletes the subset of items from between the specified indices.Nrqrnrrr�__delslice__Lsz)RepeatedScalarFieldContainer.__delslice__cCs.||urdSt||j�r$|j|jkS||jkS)�/Compares the current instance with another one.T)rrRr@r!rrrr#Qs
z#RepeatedScalarFieldContainer.__eq__)rb)r%r&r'rMr(rBrSrXrZr]r`r-rlrorirersr#�
__classcell__rrrQrrN�s

rNcs�eZdZdZdgZ�fdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zddd�Zdd�Z
dd�Zdd�Zdd�Z�ZS)�RepeatedCompositeFieldContainerzBSimple, list-like container for holding repeated composite fields.�_message_descriptorcstt|��|�||_dS)a�
    Note that we pass in a descriptor instead of the generated directly,
    since at the time we construct a _RepeatedCompositeFieldContainer we
    haven't yet necessarily initialized the type that will be contained in the
    container.

    Args:
      message_listener: A MessageListener implementation.
        The RepeatedCompositeFieldContainer will call this object's
        Modified() method when it is modified.
      message_descriptor: A Descriptor instance describing the protocol type
        that should be present in this container.  We'll use the
        _concrete_class field of this descriptor when the client calls add().
    N)rPrvrBrw)r	rA�message_descriptorrQrrrBcsz(RepeatedCompositeFieldContainer.__init__cKs@|jjfi|��}|�|j�|j�|�|jjs<|j��|S)z{Adds a new element at the end of the list and returns it. Keyword
    arguments may be used to initialize the element.
    )rw�_concrete_class�_SetListenerr?r@rSrUrV)r	rL�new_elementrrr�addus
z#RepeatedCompositeFieldContainer.addcCsB|j��}|�|j�|�|�|j�|�|jjs>|j��dS)z+Appends one element by copying the message.N)	rwryrzr?�CopyFromr@rSrUrV)r	r,r{rrrrS�s

z&RepeatedCompositeFieldContainer.appendcCsD|j��}|�|j�|�|�|j�||�|jjs@|j��dS)z6Inserts the item at the specified position by copying.N)	rwryrzr?r}r@rXrUrV)r	r
r,r{rrrrX�s

z&RepeatedCompositeFieldContainer.insertcCsN|jj}|j}|j}|D](}|�}|�|�|�|�|�|�q|��dS)z|Extends by appending the given sequence of elements of the same type

    as this one, copying each individual message.
    N)rwryr?r@rzr]rSrV)r	r[Z
message_classZlistenerr�messager{rrrrZ�s

z&RepeatedCompositeFieldContainer.extendcCs|�|j�dS)zvAppends the contents of another repeated field of the same type to this
    one, copying each individual message.
    N)rZr@r!rrrr]�sz)RepeatedCompositeFieldContainer.MergeFromcCs|j�|�|j��dSr^r_rarrrr`�sz&RepeatedCompositeFieldContainer.removerbcCs|j|}|�|�|Srcrdr0rrrr-�s

z#RepeatedCompositeFieldContainer.popcCs|j||�SrmrCrnrrrro�sz,RepeatedCompositeFieldContainer.__getslice__cCs|j|=|j��dSrprqrrrrre�sz+RepeatedCompositeFieldContainer.__delitem__cCs|j||�=|j��dSrrrqrnrrrrs�sz,RepeatedCompositeFieldContainer.__delslice__cCs,||urdSt||j�s td��|j|jkS)rtTzSCan only compare repeated composite fields against other repeated composite fields.)rrRr6r@r!rrrr#�s
z&RepeatedCompositeFieldContainer.__eq__)rb)r%r&r'rMr(rBr|rSrXrZr]r`r-rorersr#rurrrQrrv\s		
rvc@s�eZdZdZgd�Zdd�Zdd�Zdd�Zdd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zd	S)�	ScalarMapzGSimple, type-checked, dict-like container for holding repeated scalars.)�_key_checker�_value_checkerr@r?�_entry_descriptorcCs"||_||_||_||_i|_dS�a�
    Args:
      message_listener: A MessageListener implementation.
        The ScalarMap will call this object's Modified() method when it
        is modified.
      key_checker: A type_checkers.ValueChecker instance to run on keys
        inserted into this container.
      value_checker: A type_checkers.ValueChecker instance to run on values
        inserted into this container.
      entry_descriptor: The MessageDescriptor of a map entry: key and value.
    N)r?r�r�r�r@)r	rA�key_checkerZ
value_checker�entry_descriptorrrrrB�s

zScalarMap.__init__cCsHz|j|WStyB|j�|�}|j��}||j|<|YS0dSr)r@rr�rTr�ZDefaultValue)r	r
�valrrrrD�s

zScalarMap.__getitem__cCs|j�|�||jvSr�r�rTr@�r	�itemrrrr�szScalarMap.__contains__NcCs||vr||S|SdSrrrrrrr
�sz
ScalarMap.getcCs0|j�|�}|j�|�}||j|<|j��dSr)r�rTr�r@r?rV)r	r
r,Zchecked_keyZ
checked_valuerrrrl�s
zScalarMap.__setitem__cCs|j|=|j��dSrrqrrrrreszScalarMap.__delitem__cCs
t|j�SrrErrrrrFszScalarMap.__len__cCs
t|j�Sr�rr@rrrr�__iter__
szScalarMap.__iter__cCs
t|j�SrrGrrrrrI
szScalarMap.__repr__cCs|j�|j�|j��dSr)r@r;r?rVr!rrrr]szScalarMap.MergeFromcCs|j}|��|_d|d<dSr�r@�copy�r	�originalrrr�InvalidateIteratorss
zScalarMap.InvalidateIteratorscCs|j��|j��dSr�r@r2r?rVrrrrr2s
zScalarMap.clearcCs|jjSr�r�ryrrrr�
GetEntryClass szScalarMap.GetEntryClass)N)r%r&r'rMr(rBrDrr
rlrerFr�rIr]r�r2r�rrrrr�s		
rc@s�eZdZdZgd�Zdd�Zdd�Zdd�Zd d
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd	S)!�
MessageMapzESimple, type-checked, dict-like container for with submessage values.)r�r@r?rwr�cCs"||_||_||_||_i|_dSr�)r?rwr�r�r@)r	rArxr�r�rrrrB,s

zMessageMap.__init__cCs^|j�|�}z|j|WStyX|j��}|�|j�||j|<|j��|YS0dSr)	r�rTr@rrwryrzr?rV)r	r
r{rrrrD?s


zMessageMap.__getitem__cCs||S)aaget_or_create() is an alias for getitem (ie. map[key]).

    Args:
      key: The key to get or create in the map.

    This is useful in cases where you want to be explicit that the call is
    mutating the map.  This can avoid lint errors for statements like this
    that otherwise would appear to be pointless statements:

      msg.my_map[key]
    rrrrr�
get_or_createKszMessageMap.get_or_createNcCs||vr||S|SdSrrrrrrr
\szMessageMap.getcCs|j�|�}||jvSrr�r�rrrrbszMessageMap.__contains__cCstd��dS)Nz5May not set values directly, call my_map[key].foo = 5)rhr0rrrrlfszMessageMap.__setitem__cCs"|j�|�}|j|=|j��dSr)r�rTr@r?rVrrrrreiszMessageMap.__delitem__cCs
t|j�SrrErrrrrFnszMessageMap.__len__cCs
t|j�Srr�rrrrr�qszMessageMap.__iter__cCs
t|j�SrrGrrrrrItszMessageMap.__repr__cCs0|jD]$}||vr||=||�||�qdSr)r@r})r	r"r
rrrr]ws
zMessageMap.MergeFromcCs|j}|��|_d|d<dSrr�r�rrrr��s
zMessageMap.InvalidateIteratorscCs|j��|j��dSrr�rrrrr2�s
zMessageMap.clearcCs|jjSrr�rrrrr��szMessageMap.GetEntryClass)N)r%r&r'rMr(rBrDr�r
rrlrerFr�rIr]r�r2r�rrrrr�$s 
r�c@s0eZdZdZgd�Zdd�Zdd�Zdd�Zd	S)
�
_UnknownFieldzA parsed unknown field.��
_field_number�
_wire_type�_datacCs||_||_||_dSrr�)r	�field_number�	wire_type�datarrrrB�sz_UnknownField.__init__cCs|j|jkSr)r�r!rrr�__lt__�sz_UnknownField.__lt__cCs0||urdS|j|jko.|j|jko.|j|jkS�NTr�r!rrrr#�s
�
�z_UnknownField.__eq__N)r%r&r'rMr(rBr�r#rrrrr��s
r�c@s@eZdZdd�Zdd�Zedd��Zedd��Zed	d
��ZdS)�UnknownFieldRefcCs||_||_dSr)�_parent�_index)r	�parent�indexrrrrB�szUnknownFieldRef.__init__cCs*|jstd��|jt|j�kr&td��dS)NzAUnknownField does not exist. The parent message might be cleared.)r�rhr�r5rrrr�_check_valid�szUnknownFieldRef._check_validcCs|��|j�|j�jSr)r�r��
_internal_getr�r�rrrrr��szUnknownFieldRef.field_numbercCs|��|j�|j�jSr)r�r�r�r�r�rrrrr��szUnknownFieldRef.wire_typecCs|��|j�|j�jSr)r�r�r�r�r�rrrrr��szUnknownFieldRef.dataN)	r%r&r'rBr��propertyr�r�r�rrrrr��s

r�c@s^eZdZdZdgZdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dS)�UnknownFieldSetzUnknownField containerr@cCs
g|_dSrrCrrrrrB�szUnknownFieldSet.__init__cCsP|jdurtd��t|j�}|dkr,||7}|dks<||krFtdj��t||�S)N�BUnknownFields does not exist. The parent message might be cleared.rzindex %d out of range)r@rhr5�
IndexErrorr�r�)r	r��sizerrrrD�s


zUnknownFieldSet.__getitem__cCs
|j|SrrC)r	r�rrrr��szUnknownFieldSet._internal_getcCs|jdurtd��t|j�S)Nr�)r@rhr5rrrrrF�s
zUnknownFieldSet.__len__cCst|||�}|j�|�|Sr)r�r@rS)r	r�r�r�Z
unknown_fieldrrr�_add�szUnknownFieldSet._addccs"tt|��D]}t||�VqdSr)�ranger5r�)r	�irrrr��szUnknownFieldSet.__iter__cCs|durdS|j�|j�dSr)r@rZr!rrr�_extend�szUnknownFieldSet._extendcCs>||urdSt|j�}|dur$|S|��t|j�}||kSr�)rr@rK�sorted)r	r"rZother_valuesrrrr#�s

zUnknownFieldSet.__eq__cCs,|jD]}t|jt�r|j��qd|_dSr)r@rr�r��_clearrWrrrr�	s
zUnknownFieldSet._clearN)r%r&r'rMr(rBrDr�rFr�r�r�r#r�rrrrr��s
r�)rM�
__author__�sys�collections.abc�abcr�ImportError�collections�version_infor=rr*�registerr>�MutableSequencerNrvrr�r�r�r�rrrr�<module>s*0<-nnZn"