Public Member Functions | Public Attributes | List of all members
google.protobuf.internal.test_util.NonStandardInteger Class Reference
Inheritance diagram for google.protobuf.internal.test_util.NonStandardInteger:
Inheritance graph
[legend]

Public Member Functions

def __abs__ (self)
 
def __add__ (self, y)
 
def __and__ (self, y)
 
def __bool__ (self)
 
def __ceil__ (self)
 
def __div__ (self, y)
 
def __eq__ (self, y)
 
def __floor__ (self)
 
def __floordiv__ (self, y)
 
def __init__ (self, val, error_string_on_conversion=None)
 
def __int__ (self)
 
def __invert__ (self)
 
def __le__ (self, y)
 
def __long__ (self)
 
def __lshift__ (self, y)
 
def __lt__ (self, y)
 
def __mod__ (self, y)
 
def __mul__ (self, y)
 
def __neg__ (self)
 
def __nonzero__ (self)
 
def __or__ (self, y)
 
def __pos__ (self)
 
def __pow__ (self, y)
 
def __radd__ (self, y)
 
def __rand__ (self, y)
 
def __rdiv__ (self, y)
 
def __repr__ (self)
 
def __rfloordiv__ (self, y)
 
def __rlshift__ (self, y)
 
def __rmod__ (self, y)
 
def __rmul__ (self, y)
 
def __ror__ (self, y)
 
def __round__ (self)
 
def __rpow__ (self, y)
 
def __rrshift__ (self, y)
 
def __rshift__ (self, y)
 
def __rtruediv__ (self, y)
 
def __rxor__ (self, y)
 
def __truediv__ (self, y)
 
def __trunc__ (self)
 
def __xor__ (self, y)
 

Public Attributes

 error_string_on_conversion
 
 val
 

Detailed Description

An integer object that does not subclass int.

This is used to verify that both C++ and regular proto systems can handle
integer others than int and long and that they handle them in predictable
ways.

NonStandardInteger is the minimal legal specification for a custom Integral.
As such, it does not support 0 < x < 5 and it is not hashable.

Note: This is added here instead of relying on numpy or a similar library
with custom integers to limit dependencies.

Definition at line 721 of file google/protobuf/internal/test_util.py.

Constructor & Destructor Documentation

◆ __init__()

def google.protobuf.internal.test_util.NonStandardInteger.__init__ (   self,
  val,
  error_string_on_conversion = None 
)

Definition at line 735 of file google/protobuf/internal/test_util.py.

Member Function Documentation

◆ __abs__()

def google.protobuf.internal.test_util.NonStandardInteger.__abs__ (   self)

Definition at line 747 of file google/protobuf/internal/test_util.py.

◆ __add__()

def google.protobuf.internal.test_util.NonStandardInteger.__add__ (   self,
  y 
)

Definition at line 750 of file google/protobuf/internal/test_util.py.

◆ __and__()

def google.protobuf.internal.test_util.NonStandardInteger.__and__ (   self,
  y 
)

Definition at line 829 of file google/protobuf/internal/test_util.py.

◆ __bool__()

def google.protobuf.internal.test_util.NonStandardInteger.__bool__ (   self)

Definition at line 847 of file google/protobuf/internal/test_util.py.

◆ __ceil__()

def google.protobuf.internal.test_util.NonStandardInteger.__ceil__ (   self)

Definition at line 853 of file google/protobuf/internal/test_util.py.

◆ __div__()

def google.protobuf.internal.test_util.NonStandardInteger.__div__ (   self,
  y 
)

Definition at line 753 of file google/protobuf/internal/test_util.py.

◆ __eq__()

def google.protobuf.internal.test_util.NonStandardInteger.__eq__ (   self,
  y 
)

Definition at line 756 of file google/protobuf/internal/test_util.py.

◆ __floor__()

def google.protobuf.internal.test_util.NonStandardInteger.__floor__ (   self)

Definition at line 856 of file google/protobuf/internal/test_util.py.

◆ __floordiv__()

def google.protobuf.internal.test_util.NonStandardInteger.__floordiv__ (   self,
  y 
)

Definition at line 759 of file google/protobuf/internal/test_util.py.

◆ __int__()

def google.protobuf.internal.test_util.NonStandardInteger.__int__ (   self)

Definition at line 859 of file google/protobuf/internal/test_util.py.

◆ __invert__()

def google.protobuf.internal.test_util.NonStandardInteger.__invert__ (   self)

Definition at line 765 of file google/protobuf/internal/test_util.py.

◆ __le__()

def google.protobuf.internal.test_util.NonStandardInteger.__le__ (   self,
  y 
)

Definition at line 819 of file google/protobuf/internal/test_util.py.

◆ __long__()

def google.protobuf.internal.test_util.NonStandardInteger.__long__ (   self)

Definition at line 742 of file google/protobuf/internal/test_util.py.

◆ __lshift__()

def google.protobuf.internal.test_util.NonStandardInteger.__lshift__ (   self,
  y 
)

Definition at line 807 of file google/protobuf/internal/test_util.py.

◆ __lt__()

def google.protobuf.internal.test_util.NonStandardInteger.__lt__ (   self,
  y 
)

Definition at line 824 of file google/protobuf/internal/test_util.py.

◆ __mod__()

def google.protobuf.internal.test_util.NonStandardInteger.__mod__ (   self,
  y 
)

Definition at line 768 of file google/protobuf/internal/test_util.py.

◆ __mul__()

def google.protobuf.internal.test_util.NonStandardInteger.__mul__ (   self,
  y 
)

Definition at line 771 of file google/protobuf/internal/test_util.py.

◆ __neg__()

def google.protobuf.internal.test_util.NonStandardInteger.__neg__ (   self)

Definition at line 774 of file google/protobuf/internal/test_util.py.

◆ __nonzero__()

def google.protobuf.internal.test_util.NonStandardInteger.__nonzero__ (   self)

Definition at line 850 of file google/protobuf/internal/test_util.py.

◆ __or__()

def google.protobuf.internal.test_util.NonStandardInteger.__or__ (   self,
  y 
)

Definition at line 832 of file google/protobuf/internal/test_util.py.

◆ __pos__()

def google.protobuf.internal.test_util.NonStandardInteger.__pos__ (   self)

Definition at line 777 of file google/protobuf/internal/test_util.py.

◆ __pow__()

def google.protobuf.internal.test_util.NonStandardInteger.__pow__ (   self,
  y 
)

Definition at line 780 of file google/protobuf/internal/test_util.py.

◆ __radd__()

def google.protobuf.internal.test_util.NonStandardInteger.__radd__ (   self,
  y 
)

Definition at line 786 of file google/protobuf/internal/test_util.py.

◆ __rand__()

def google.protobuf.internal.test_util.NonStandardInteger.__rand__ (   self,
  y 
)

Definition at line 838 of file google/protobuf/internal/test_util.py.

◆ __rdiv__()

def google.protobuf.internal.test_util.NonStandardInteger.__rdiv__ (   self,
  y 
)

Definition at line 789 of file google/protobuf/internal/test_util.py.

◆ __repr__()

def google.protobuf.internal.test_util.NonStandardInteger.__repr__ (   self)

Definition at line 867 of file google/protobuf/internal/test_util.py.

◆ __rfloordiv__()

def google.protobuf.internal.test_util.NonStandardInteger.__rfloordiv__ (   self,
  y 
)

Definition at line 801 of file google/protobuf/internal/test_util.py.

◆ __rlshift__()

def google.protobuf.internal.test_util.NonStandardInteger.__rlshift__ (   self,
  y 
)

Definition at line 813 of file google/protobuf/internal/test_util.py.

◆ __rmod__()

def google.protobuf.internal.test_util.NonStandardInteger.__rmod__ (   self,
  y 
)

Definition at line 792 of file google/protobuf/internal/test_util.py.

◆ __rmul__()

def google.protobuf.internal.test_util.NonStandardInteger.__rmul__ (   self,
  y 
)

Definition at line 795 of file google/protobuf/internal/test_util.py.

◆ __ror__()

def google.protobuf.internal.test_util.NonStandardInteger.__ror__ (   self,
  y 
)

Definition at line 841 of file google/protobuf/internal/test_util.py.

◆ __round__()

def google.protobuf.internal.test_util.NonStandardInteger.__round__ (   self)

Definition at line 864 of file google/protobuf/internal/test_util.py.

◆ __rpow__()

def google.protobuf.internal.test_util.NonStandardInteger.__rpow__ (   self,
  y 
)

Definition at line 798 of file google/protobuf/internal/test_util.py.

◆ __rrshift__()

def google.protobuf.internal.test_util.NonStandardInteger.__rrshift__ (   self,
  y 
)

Definition at line 816 of file google/protobuf/internal/test_util.py.

◆ __rshift__()

def google.protobuf.internal.test_util.NonStandardInteger.__rshift__ (   self,
  y 
)

Definition at line 810 of file google/protobuf/internal/test_util.py.

◆ __rtruediv__()

def google.protobuf.internal.test_util.NonStandardInteger.__rtruediv__ (   self,
  y 
)

Definition at line 804 of file google/protobuf/internal/test_util.py.

◆ __rxor__()

def google.protobuf.internal.test_util.NonStandardInteger.__rxor__ (   self,
  y 
)

Definition at line 844 of file google/protobuf/internal/test_util.py.

◆ __truediv__()

def google.protobuf.internal.test_util.NonStandardInteger.__truediv__ (   self,
  y 
)

Definition at line 762 of file google/protobuf/internal/test_util.py.

◆ __trunc__()

def google.protobuf.internal.test_util.NonStandardInteger.__trunc__ (   self)

Definition at line 783 of file google/protobuf/internal/test_util.py.

◆ __xor__()

def google.protobuf.internal.test_util.NonStandardInteger.__xor__ (   self,
  y 
)

Definition at line 835 of file google/protobuf/internal/test_util.py.

Member Data Documentation

◆ error_string_on_conversion

google.protobuf.internal.test_util.NonStandardInteger.error_string_on_conversion

Definition at line 740 of file google/protobuf/internal/test_util.py.

◆ val

google.protobuf.internal.test_util.NonStandardInteger.val

Definition at line 739 of file google/protobuf/internal/test_util.py.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10