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

The following are 17 code examples for showing how to use google.protobuf.pyext._message.MethodDescriptor(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module google.protobuf.pyext._message , or try the search function .

Example 1
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 6 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None, serialized_options=None,
               create_key=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    if create_key is not _internal_create_key:
      _Deprecated('MethodDescriptor')

    super(MethodDescriptor, self).__init__(
        options, serialized_options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 2
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 6 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None, serialized_options=None,
               create_key=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    if create_key is not _internal_create_key:
      _Deprecated('MethodDescriptor')

    super(MethodDescriptor, self).__init__(
        options, serialized_options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 3
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 6 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None, serialized_options=None,
               create_key=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    if create_key is not _internal_create_key:
      _Deprecated('MethodDescriptor')

    super(MethodDescriptor, self).__init__(
        options, serialized_options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 4
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 6 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None, serialized_options=None,
               create_key=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    if create_key is not _internal_create_key:
      _Deprecated('MethodDescriptor')

    super(MethodDescriptor, self).__init__(
        options, serialized_options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 5
Project: lambda-packs   Author: ryfeus   File: descriptor.py    License: MIT License 5 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None, serialized_options=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    super(MethodDescriptor, self).__init__(
        options, serialized_options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 6
Project: auto-alt-text-lambda-api   Author: abhisuri97   File: descriptor.py    License: MIT License 5 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    super(MethodDescriptor, self).__init__(options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 7
Project: coremltools   Author: apple   File: descriptor.py    License: BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    super(MethodDescriptor, self).__init__(options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 8
Project: go2mapillary   Author: enricofer   File: descriptor.py    License: GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    super(MethodDescriptor, self).__init__(options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 9
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 5 votes vote down vote up
def FindMethodByName(self, name):
    """Searches for the specified method, and returns its descriptor.

    Args:
      name (str): Name of the method.
    Returns:
      MethodDescriptor or None: the desctiptor for the requested method, if
      found.
    """
    return self.methods_by_name.get(name, None) 
Example 10
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 5 votes vote down vote up
def FindMethodByName(self, name):
    """Searches for the specified method, and returns its descriptor.

    Args:
      name (str): Name of the method.
    Returns:
      MethodDescriptor or None: the desctiptor for the requested method, if
      found.
    """
    return self.methods_by_name.get(name, None) 
Example 11
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 5 votes vote down vote up
def FindMethodByName(self, name):
    """Searches for the specified method, and returns its descriptor.

    Args:
      name (str): Name of the method.
    Returns:
      MethodDescriptor or None: the desctiptor for the requested method, if
      found.
    """
    return self.methods_by_name.get(name, None) 
Example 12
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 5 votes vote down vote up
def FindMethodByName(self, name):
    """Searches for the specified method, and returns its descriptor.

    Args:
      name (str): Name of the method.
    Returns:
      MethodDescriptor or None: the desctiptor for the requested method, if
      found.
    """
    return self.methods_by_name.get(name, None) 
Example 13
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 5 votes vote down vote up
def FindMethodByName(self, name):
    """Searches for the specified method, and returns its descriptor.

    Args:
      name (str): Name of the method.
    Returns:
      MethodDescriptor or None: the desctiptor for the requested method, if
      found.
    """
    return self.methods_by_name.get(name, None) 
Example 14
Project: luci-py   Author: luci   File: descriptor.py    License: Apache License 2.0 5 votes vote down vote up
def FindMethodByName(self, name):
    """Searches for the specified method, and returns its descriptor.

    Args:
      name (str): Name of the method.
    Returns:
      MethodDescriptor or None: the desctiptor for the requested method, if
      found.
    """
    return self.methods_by_name.get(name, None) 
Example 15
Project: Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda   Author: PacktPublishing   File: descriptor.py    License: MIT License 5 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    super(MethodDescriptor, self).__init__(options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 16
Project: Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda   Author: PacktPublishing   File: descriptor.py    License: MIT License 5 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None, serialized_options=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    super(MethodDescriptor, self).__init__(
        options, serialized_options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type 
Example 17
Project: keras-lambda   Author: sunilmallya   File: descriptor.py    License: MIT License 5 votes vote down vote up
def __init__(self, name, full_name, index, containing_service,
               input_type, output_type, options=None):
    """The arguments are as described in the description of MethodDescriptor
    attributes above.

    Note that containing_service may be None, and may be set later if necessary.
    """
    super(MethodDescriptor, self).__init__(options, 'MethodOptions')
    self.name = name
    self.full_name = full_name
    self.index = index
    self.containing_service = containing_service
    self.input_type = input_type
    self.output_type = output_type