from google.protobuf.empty_pb2 import Empty
import some_pb2 from google.protobuf.empty_pb2 import Empty request = some_pb2.SomeRequest(empty_field=Empty())
from google.protobuf.empty_pb2 import Empty import some_pb2_grpc class MyServicer(some_pb2_grpc.MyServicer): def my_method(self, request, context): # do some work return Empty()In this example, the my_method method of the MyServicer class returns an Empty message to indicate that there is no response data. Package library: googleapis-common-protos.