Public Member Functions | Public Attributes | List of all members
demo_pb2_grpc.GRPCDemoStub Class Reference
Inheritance diagram for demo_pb2_grpc.GRPCDemoStub:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, channel)
 

Public Attributes

 BidirectionalStreamingMethod
 
 ClientStreamingMethod
 
 ServerStreamingMethod
 
 SimpleMethod
 

Detailed Description

service是用来给GRPC服务定义方法的, 格式固定, 类似于Golang中定义一个接口
`service` is used to define methods for GRPC services in a fixed format, similar to defining an interface in Golang

Definition at line 7 of file demo_pb2_grpc.py.

Constructor & Destructor Documentation

◆ __init__()

def demo_pb2_grpc.GRPCDemoStub.__init__ (   self,
  channel 
)
Constructor.

Args:
  channel: A grpc.Channel.

Definition at line 12 of file demo_pb2_grpc.py.

Member Data Documentation

◆ BidirectionalStreamingMethod

demo_pb2_grpc.GRPCDemoStub.BidirectionalStreamingMethod

Definition at line 33 of file demo_pb2_grpc.py.

◆ ClientStreamingMethod

demo_pb2_grpc.GRPCDemoStub.ClientStreamingMethod

Definition at line 23 of file demo_pb2_grpc.py.

◆ ServerStreamingMethod

demo_pb2_grpc.GRPCDemoStub.ServerStreamingMethod

Definition at line 28 of file demo_pb2_grpc.py.

◆ SimpleMethod

demo_pb2_grpc.GRPCDemoStub.SimpleMethod

Definition at line 18 of file demo_pb2_grpc.py.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10