HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/google/protobuf/internal/containers.pyo
�
Q�,Qc@sRdZdZdefd��YZdefd��YZdefd��YZdS(	s�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.
spetar@google.com (Petar Petrov)t
BaseContainercBsYeZdZddgZd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
RS(
sBase container class.t_message_listenert_valuescCs||_g|_dS(s�
    Args:
      message_listener: A MessageListener implementation.
        The RepeatedScalarFieldContainer will call this object's
        Modified() method when it is modified.
    N(RR(tselftmessage_listener((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__init__4s	cCs|j|S(s$Retrieves item by the specified key.(R(Rtkey((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__getitem__>scCs
t|j�S(s0Returns the number of elements in the container.(tlenR(R((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__len__BscCs||kS(s3Checks if another instance isn't equal to this one.((Rtother((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__ne__FscCstd��dS(Nsunhashable object(t	TypeError(R((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__hash__KscCs
t|j�S(N(treprR(R((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__repr__NscOs9d|kr"|jd�|d<n|jj||�dS(Nt
sort_functiontcmp(tpopRtsort(Rtargstkwargs((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyRQs(t__name__t
__module__t__doc__t	__slots__RRR	RR
RR(((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR-s	
					tRepeatedScalarFieldContainercBs�eZdZdgZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(sGSimple, type-checked, list-like container for holding repeated scalars.t
_type_checkercCs#tt|�j|�||_dS(s,
    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(tsuperRRR(RRttype_checker((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyRas	cCs@|jj|�|jj|�|jjs<|jj�ndS(s6Appends an item to the list. Similar to list.append().N(Rt
CheckValueRtappendRtdirtytModified(Rtvalue((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyRmscCsC|jj|�|jj||�|jjs?|jj�ndS(sEInserts the item at the specified position. Similar to list.insert().N(RRRtinsertRR R!(RRR"((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR#tscCs_|s
dSg}x+|D]#}|jj|�|j|�qW|jj|�|jj�dS(sBExtends by appending the given sequence. Similar to list.extend().N(RRRRtextendRR!(Rtelem_seqt
new_valuestelem((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR${s
cCs$|jj|j�|jj�dS(s�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(RR$RR!(RR
((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt	MergeFrom�scCs!|jj|�|jj�dS(s8Removes an item from the list. Similar to list.remove().N(RtremoveRR!(RR'((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR)�scCs.|jj|�||j|<|jj�dS(s(Sets the item on the specified position.N(RRRRR!(RRR"((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__setitem__�s
cCs|j||!S(sARetrieves the subset of items from between the specified indices.(R(Rtstarttstop((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__getslice__�scCsUg}x+|D]#}|jj|�|j|�q
W||j||+|jj�dS(s<Sets the subset of items from between the specified indices.N(RRRRRR!(RR+R,tvaluesR&R"((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__setslice__�s
cCs|j|=|jj�dS(s+Deletes the item at the specified position.N(RRR!(RR((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__delitem__�s
cCs|j||5|jj�dS(s?Deletes the subset of items from between the specified indices.N(RRR!(RR+R,((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__delslice__�s
cCs?||krtSt||j�r2|j|jkS||jkS(s/Compares the current instance with another one.(tTruet
isinstancet	__class__R(RR
((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt__eq__�s
(RRRRRRR#R$R(R)R*R-R/R0R1R5(((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyRZs													tRepeatedCompositeFieldContainercBsheZdZdgZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZRS(sBSimple, list-like container for holding repeated composite fields.t_message_descriptorcCs#tt|�j|�||_dS(s�
    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(RR6RR7(RRtmessage_descriptor((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR�scKsR|jj|�}|j|j�|jj|�|jjsN|jj�n|S(s{Adds a new element at the end of the list and returns it. Keyword
    arguments may be used to initialize the element.
    (R7t_concrete_classt_SetListenerRRRR R!(RRtnew_element((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pytadd�scCsm|jj}|j}|j}x>|D]6}|�}|j|�|j|�|j|�q%W|j�dS(s{Extends by appending the given sequence of elements of the same type
    as this one, copying each individual message.
    N(R7R9RRR:R(RR!(RR%t
message_classtlistenerR.tmessageR;((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR$�s		
	

cCs|j|j�dS(svAppends the contents of another repeated field of the same type to this
    one, copying each individual message.
    N(R$R(RR
((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR(�scCs!|jj|�|jj�dS(s8Removes an item from the list. Similar to list.remove().N(RR)RR!(RR'((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR)�scCs|j||!S(sARetrieves the subset of items from between the specified indices.(R(RR+R,((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR-�scCs|j|=|jj�dS(s+Deletes the item at the specified position.N(RRR!(RR((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR0�s
cCs|j||5|jj�dS(s?Deletes the subset of items from between the specified indices.N(RRR!(RR+R,((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR1s
cCsA||krtSt||j�s1td��n|j|jkS(s/Compares the current instance with another one.sSCan only compare repeated composite fields against other repeated composite fields.(R2R3R4RR(RR
((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR5s
(
RRRRRR<R$R(R)R-R0R1R5(((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyR6�s									N(Rt
__author__tobjectRRR6(((sG/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyt<module>(s-a