webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
google.protobuf.service_reflection._ServiceStubBuilder Class Reference
Inheritance diagram for google.protobuf.service_reflection._ServiceStubBuilder:

Public Member Functions

def __init__ (self, service_descriptor)
 
def BuildServiceStub (self, cls)
 

Public Attributes

 descriptor
 
 cls
 

Detailed Description

Constructs a protocol service stub class using a service descriptor.

Given a service descriptor, this class constructs a suitable stub class.
A stub is just a type-safe wrapper around an RpcChannel which emulates a
local implementation of the service.

One service stub builder instance constructs exactly one class. It means all
instances of that class share the same service stub builder.

Constructor & Destructor Documentation

◆ __init__()

def google.protobuf.service_reflection._ServiceStubBuilder.__init__ (   self,
  service_descriptor 
)
Initializes an instance of the service stub class builder.

Args:
  service_descriptor: ServiceDescriptor to use when constructing the
stub class.

Member Function Documentation

◆ BuildServiceStub()

def google.protobuf.service_reflection._ServiceStubBuilder.BuildServiceStub (   self,
  cls 
)
Constructs the stub class.

Args:
  cls: The class that will be constructed.

Member Data Documentation

◆ cls

google.protobuf.service_reflection._ServiceStubBuilder.cls

◆ descriptor

google.protobuf.service_reflection._ServiceStubBuilder.descriptor

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