webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
google.protobuf.descriptor.ServiceDescriptor Class Reference
Inheritance diagram for google.protobuf.descriptor.ServiceDescriptor:
google.protobuf.descriptor._NestedDescriptorBase google.protobuf.descriptor.DescriptorBase google.protobuf.descriptor.DescriptorMetaclass

Public Member Functions

def __init__ (self, name, full_name, index, methods, options=None, file=None, serialized_start=None, serialized_end=None)
 
def FindMethodByName (self, name)
 
def CopyToProto (self, proto)
 
- Public Member Functions inherited from google.protobuf.descriptor._NestedDescriptorBase
def __init__ (self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None)
 
def GetTopLevelContainingType (self)
 
def CopyToProto (self, proto)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorBase
def __init__ (self, options, options_class_name)
 
def GetOptions (self)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorMetaclass
def __instancecheck__ (cls, obj)
 

Public Attributes

 index
 
 methods
 
- Public Attributes inherited from google.protobuf.descriptor._NestedDescriptorBase
 name
 
 full_name
 
 file
 
 containing_type
 
- Public Attributes inherited from google.protobuf.descriptor.DescriptorBase
 has_options
 

Detailed Description

Descriptor for a service.

  name: (str) Name of the service.
  full_name: (str) Full name of the service, including package name.
  index: (int) 0-indexed index giving the order that this services
    definition appears withing the .proto file.
  methods: (list of MethodDescriptor) List of methods provided by this
    service.
  options: (descriptor_pb2.ServiceOptions) Service options message or
    None to use default service options.
  file: (FileDescriptor) Reference to file info.

Constructor & Destructor Documentation

◆ __init__()

def google.protobuf.descriptor.ServiceDescriptor.__init__ (   self,
  name,
  full_name,
  index,
  methods,
  options = None,
  file = None,
  serialized_start = None,
  serialized_end = None 
)

Member Function Documentation

◆ CopyToProto()

def google.protobuf.descriptor.ServiceDescriptor.CopyToProto (   self,
  proto 
)
Copies this to a descriptor_pb2.ServiceDescriptorProto.

Args:
  proto: An empty descriptor_pb2.ServiceDescriptorProto.

◆ FindMethodByName()

def google.protobuf.descriptor.ServiceDescriptor.FindMethodByName (   self,
  name 
)
Searches for the specified method, and returns its descriptor.

Member Data Documentation

◆ index

google.protobuf.descriptor.ServiceDescriptor.index

◆ methods

google.protobuf.descriptor.ServiceDescriptor.methods

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