Python google.protobuf.pyext._message.EnumValueDescriptor() Examples

The following are code examples for showing how to use google.protobuf.pyext._message.EnumValueDescriptor(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: bigquerylayers   Author: smandaric   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 2
Project: bigquerylayers   Author: smandaric   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 3
Project: RouteOptimization   Author: andre-le   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 4
Project: RouteOptimization   Author: andre-le   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 5
Project: deoplete-asm   Author: deoplete-plugins   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 6
Project: deoplete-asm   Author: deoplete-plugins   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 7
Project: FUTU_Stop_Loss   Author: BigtoC   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 8
Project: FUTU_Stop_Loss   Author: BigtoC   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 9
Project: auto-alt-text-lambda-api   Author: abhisuri97   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 10
Project: auto-alt-text-lambda-api   Author: abhisuri97   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 11
Project: chrome_os_updater   Author: MuntashirAkon   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 12
Project: chrome_os_updater   Author: MuntashirAkon   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 13
Project: poker   Author: surgebiswas   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 14
Project: poker   Author: surgebiswas   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 15
Project: poker   Author: surgebiswas   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 16
Project: poker   Author: surgebiswas   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 17
Project: syndicate-core   Author: syndicate-storage   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 18
Project: syndicate-core   Author: syndicate-storage   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 19
Project: Emotion-Evaluator   Author: Attriumph   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 20
Project: Emotion-Evaluator   Author: Attriumph   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 21
Project: geofire-python   Author: ininex   File: descriptor.py    MIT License 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 22
Project: geofire-python   Author: ininex   File: descriptor.py    MIT License 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 23
Project: go2mapillary   Author: enricofer   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 24
Project: go2mapillary   Author: enricofer   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 25
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 26
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 27
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 28
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 29
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 30
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 31
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 32
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 33
Project: luci-py   Author: luci   File: descriptor.py    Apache License 2.0 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 34
Project: kastodi   Author: kharts   File: descriptor.py    GNU General Public License v2.0 5 votes vote down vote up
def __new__(cls, name, index, number, type=None, options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 35
Project: kastodi   Author: kharts   File: descriptor.py    GNU General Public License v2.0 5 votes vote down vote up
def __init__(self, name, index, number, type=None, options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type 
Example 36
Project: lambda-tensorflow-object-detection   Author: mikylucky   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None):
      _message.Message._CheckCalledFromGeneratedFile()
      # There is no way we can build a complete EnumValueDescriptor with the
      # given parameters (the name of the Enum is not known, for example).
      # Fortunately generated files just pass it to the EnumDescriptor()
      # constructor, which will ignore it, so returning None is good enough.
      return None 
Example 37
Project: lambda-tensorflow-object-detection   Author: mikylucky   File: descriptor.py    GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, name, index, number,
               type=None,  # pylint: disable=redefined-builtin
               options=None, serialized_options=None):
    """Arguments are as described in the attribute description above."""
    super(EnumValueDescriptor, self).__init__(
        options, serialized_options, 'EnumValueOptions')
    self.name = name
    self.index = index
    self.number = number
    self.type = type