Go to the documentation of this file.
14 """Interfaces defining the Face layer of RPC Framework."""
32 """Raised by customer code to indicate an unrecognized method.
35 group: The group of the unrecognized method.
36 name: The name of the unrecognized method.
43 group: The group identifier of the unrecognized RPC name.
44 method: The method identifier of the unrecognized RPC name.
46 super(NoSuchMethodError, self).
__init__()
51 return 'face.NoSuchMethodError(%s, %s)' % (
58 collections.namedtuple(
'Abortion', (
65 """A value describing RPC abortion.
68 kind: A Kind value identifying how the RPC failed.
69 initial_metadata: The initial metadata from the other side of the RPC or
70 None if no initial metadata value was received.
71 terminal_metadata: The terminal metadata from the other side of the RPC or
72 None if no terminal metadata value was received.
73 code: The code value from the other side of the RPC or None if no code value
75 details: The details value from the other side of the RPC or None if no
76 details value was received.
81 """Types of RPC abortion."""
83 CANCELLED =
'cancelled'
85 LOCAL_SHUTDOWN =
'local shutdown'
86 REMOTE_SHUTDOWN =
'remote shutdown'
87 NETWORK_FAILURE =
'network failure'
88 LOCAL_FAILURE =
'local failure'
89 REMOTE_FAILURE =
'remote failure'
93 """Common super type for exceptions indicating RPC abortion.
95 initial_metadata: The initial metadata from the other side of the RPC or
96 None if no initial metadata value was received.
97 terminal_metadata: The terminal metadata from the other side of the RPC or
98 None if no terminal metadata value was received.
99 code: The code value from the other side of the RPC or None if no code value
101 details: The details value from the other side of the RPC or None if no
102 details value was received.
105 def __init__(self, initial_metadata, terminal_metadata, code, details):
106 super(AbortionError, self).
__init__()
113 return '%s(code=%s, details="%s")' % (self.__class__.__name__,
118 """Indicates that an RPC has been cancelled."""
121 class ExpirationError(AbortionError):
122 """Indicates that an RPC has expired ("timed out")."""
126 """Indicates that an RPC has terminated due to local shutdown of RPCs."""
130 """Indicates that an RPC has terminated due to remote shutdown of RPCs."""
134 """Indicates that some error occurred on the network."""
138 """Indicates that an RPC has terminated due to a local defect."""
142 """Indicates that an RPC has terminated due to a remote defect."""
146 """Provides RPC-related information and action."""
150 """Describes whether the RPC is active or has terminated."""
151 raise NotImplementedError()
155 """Describes the length of allowed time remaining for the RPC.
158 A nonnegative float indicating the length of allowed time in seconds
159 remaining for the RPC to complete before it is considered to have timed
162 raise NotImplementedError()
166 """Registers a callback to be called if the RPC is aborted.
169 abortion_callback: A callable to be called and passed an Abortion value
170 in the event of RPC abortion.
172 raise NotImplementedError()
178 Idempotent and has no effect if the RPC has already terminated.
180 raise NotImplementedError()
184 """Accesses a custom object specified by an implementation provider.
187 A value specified by the provider of a Face interface implementation
188 affording custom state and behavior.
190 raise NotImplementedError()
194 """Invocation-side utility object for an RPC."""
198 """Accesses the initial metadata from the service-side of the RPC.
200 This method blocks until the value is available or is known not to have been
201 emitted from the service-side of the RPC.
204 The initial metadata object emitted by the service-side of the RPC, or
205 None if there was no such value.
207 raise NotImplementedError()
211 """Accesses the terminal metadata from the service-side of the RPC.
213 This method blocks until the value is available or is known not to have been
214 emitted from the service-side of the RPC.
217 The terminal metadata object emitted by the service-side of the RPC, or
218 None if there was no such value.
220 raise NotImplementedError()
224 """Accesses the code emitted by the service-side of the RPC.
226 This method blocks until the value is available or is known not to have been
227 emitted from the service-side of the RPC.
230 The code object emitted by the service-side of the RPC, or None if there
233 raise NotImplementedError()
237 """Accesses the details value emitted by the service-side of the RPC.
239 This method blocks until the value is available or is known not to have been
240 emitted from the service-side of the RPC.
243 The details value emitted by the service-side of the RPC, or None if there
246 raise NotImplementedError()
250 """A context object passed to method implementations."""
254 """Accesses the metadata from the invocation-side of the RPC.
256 This method blocks until the value is available or is known not to have been
257 emitted from the invocation-side of the RPC.
260 The metadata object emitted by the invocation-side of the RPC, or None if
261 there was no such value.
263 raise NotImplementedError()
267 """Accepts the service-side initial metadata value of the RPC.
269 This method need not be called by method implementations if they have no
270 service-side initial metadata to transmit.
273 initial_metadata: The service-side initial metadata value of the RPC to
274 be transmitted to the invocation side of the RPC.
276 raise NotImplementedError()
280 """Accepts the service-side terminal metadata value of the RPC.
282 This method need not be called by method implementations if they have no
283 service-side terminal metadata to transmit.
286 terminal_metadata: The service-side terminal metadata value of the RPC to
287 be transmitted to the invocation side of the RPC.
289 raise NotImplementedError()
293 """Accepts the service-side code of the RPC.
295 This method need not be called by method implementations if they have no
299 code: The code of the RPC to be transmitted to the invocation side of the
302 raise NotImplementedError()
306 """Accepts the service-side details of the RPC.
308 This method need not be called by method implementations if they have no
309 service-side details to transmit.
312 details: The service-side details value of the RPC to be transmitted to
313 the invocation side of the RPC.
315 raise NotImplementedError()
319 """Invocation-side object used to accept the output of an RPC."""
323 """Receives the initial metadata from the service-side of the RPC.
326 initial_metadata: The initial metadata object emitted from the
327 service-side of the RPC.
329 raise NotImplementedError()
333 """Receives a response from the service-side of the RPC.
336 response: A response object emitted from the service-side of the RPC.
338 raise NotImplementedError()
341 def complete(self, terminal_metadata, code, details):
342 """Receives the completion values emitted from the service-side of the RPC.
345 terminal_metadata: The terminal metadata object emitted from the
346 service-side of the RPC.
347 code: The code object emitted from the service-side of the RPC.
348 details: The details object emitted from the service-side of the RPC.
350 raise NotImplementedError()
354 """Affords invoking a unary-unary RPC in any call style."""
362 protocol_options=None):
363 """Synchronously invokes the underlying RPC.
366 request: The request value for the RPC.
367 timeout: A duration of time in seconds to allow for the RPC.
368 metadata: A metadata value to be passed to the service-side of
370 with_call: Whether or not to include return a Call for the RPC in addition
372 protocol_options: A value specified by the provider of a Face interface
373 implementation affording custom state and behavior.
376 The response value for the RPC, and a Call for the RPC if with_call was
377 set to True at invocation.
380 AbortionError: Indicating that the RPC was aborted.
382 raise NotImplementedError()
385 def future(self, request, timeout, metadata=None, protocol_options=None):
386 """Asynchronously invokes the underlying RPC.
389 request: The request value for the RPC.
390 timeout: A duration of time in seconds to allow for the RPC.
391 metadata: A metadata value to be passed to the service-side of
393 protocol_options: A value specified by the provider of a Face interface
394 implementation affording custom state and behavior.
397 An object that is both a Call for the RPC and a future.Future. In the
398 event of RPC completion, the return Future's result value will be the
399 response value of the RPC. In the event of RPC abortion, the returned
400 Future's exception value will be an AbortionError.
402 raise NotImplementedError()
411 protocol_options=None):
412 """Asynchronously invokes the underlying RPC.
415 request: The request value for the RPC.
416 receiver: A ResponseReceiver to be passed the response data of the RPC.
417 abortion_callback: A callback to be called and passed an Abortion value
418 in the event of RPC abortion.
419 timeout: A duration of time in seconds to allow for the RPC.
420 metadata: A metadata value to be passed to the service-side of
422 protocol_options: A value specified by the provider of a Face interface
423 implementation affording custom state and behavior.
428 raise NotImplementedError()
432 """Affords invoking a unary-stream RPC in any call style."""
435 def __call__(self, request, timeout, metadata=None, protocol_options=None):
436 """Invokes the underlying RPC.
439 request: The request value for the RPC.
440 timeout: A duration of time in seconds to allow for the RPC.
441 metadata: A metadata value to be passed to the service-side of
443 protocol_options: A value specified by the provider of a Face interface
444 implementation affording custom state and behavior.
447 An object that is both a Call for the RPC and an iterator of response
448 values. Drawing response values from the returned iterator may raise
449 AbortionError indicating abortion of the RPC.
451 raise NotImplementedError()
460 protocol_options=None):
461 """Asynchronously invokes the underlying RPC.
464 request: The request value for the RPC.
465 receiver: A ResponseReceiver to be passed the response data of the RPC.
466 abortion_callback: A callback to be called and passed an Abortion value
467 in the event of RPC abortion.
468 timeout: A duration of time in seconds to allow for the RPC.
469 metadata: A metadata value to be passed to the service-side of
471 protocol_options: A value specified by the provider of a Face interface
472 implementation affording custom state and behavior.
475 A Call object for the RPC.
477 raise NotImplementedError()
481 """Affords invoking a stream-unary RPC in any call style."""
489 protocol_options=None):
490 """Synchronously invokes the underlying RPC.
493 request_iterator: An iterator that yields request values for the RPC.
494 timeout: A duration of time in seconds to allow for the RPC.
495 metadata: A metadata value to be passed to the service-side of
497 with_call: Whether or not to include return a Call for the RPC in addition
499 protocol_options: A value specified by the provider of a Face interface
500 implementation affording custom state and behavior.
503 The response value for the RPC, and a Call for the RPC if with_call was
504 set to True at invocation.
507 AbortionError: Indicating that the RPC was aborted.
509 raise NotImplementedError()
516 protocol_options=None):
517 """Asynchronously invokes the underlying RPC.
520 request_iterator: An iterator that yields request values for the RPC.
521 timeout: A duration of time in seconds to allow for the RPC.
522 metadata: A metadata value to be passed to the service-side of
524 protocol_options: A value specified by the provider of a Face interface
525 implementation affording custom state and behavior.
528 An object that is both a Call for the RPC and a future.Future. In the
529 event of RPC completion, the return Future's result value will be the
530 response value of the RPC. In the event of RPC abortion, the returned
531 Future's exception value will be an AbortionError.
533 raise NotImplementedError()
541 protocol_options=None):
542 """Asynchronously invokes the underlying RPC.
545 receiver: A ResponseReceiver to be passed the response data of the RPC.
546 abortion_callback: A callback to be called and passed an Abortion value
547 in the event of RPC abortion.
548 timeout: A duration of time in seconds to allow for the RPC.
549 metadata: A metadata value to be passed to the service-side of
551 protocol_options: A value specified by the provider of a Face interface
552 implementation affording custom state and behavior.
555 A single object that is both a Call object for the RPC and a
556 stream.Consumer to which the request values of the RPC should be passed.
558 raise NotImplementedError()
562 """Affords invoking a stream-stream RPC in any call style."""
569 protocol_options=None):
570 """Invokes the underlying RPC.
573 request_iterator: An iterator that yields request values for the RPC.
574 timeout: A duration of time in seconds to allow for the RPC.
575 metadata: A metadata value to be passed to the service-side of
577 protocol_options: A value specified by the provider of a Face interface
578 implementation affording custom state and behavior.
581 An object that is both a Call for the RPC and an iterator of response
582 values. Drawing response values from the returned iterator may raise
583 AbortionError indicating abortion of the RPC.
585 raise NotImplementedError()
593 protocol_options=None):
594 """Asynchronously invokes the underlying RPC.
597 receiver: A ResponseReceiver to be passed the response data of the RPC.
598 abortion_callback: A callback to be called and passed an Abortion value
599 in the event of RPC abortion.
600 timeout: A duration of time in seconds to allow for the RPC.
601 metadata: A metadata value to be passed to the service-side of
603 protocol_options: A value specified by the provider of a Face interface
604 implementation affording custom state and behavior.
607 A single object that is both a Call object for the RPC and a
608 stream.Consumer to which the request values of the RPC should be passed.
610 raise NotImplementedError()
614 """A sum type that describes a method implementation.
617 cardinality: A cardinality.Cardinality value.
618 style: A style.Service value.
619 unary_unary_inline: The implementation of the method as a callable value
620 that takes a request value and a ServicerContext object and returns a
621 response value. Only non-None if cardinality is
622 cardinality.Cardinality.UNARY_UNARY and style is style.Service.INLINE.
623 unary_stream_inline: The implementation of the method as a callable value
624 that takes a request value and a ServicerContext object and returns an
625 iterator of response values. Only non-None if cardinality is
626 cardinality.Cardinality.UNARY_STREAM and style is style.Service.INLINE.
627 stream_unary_inline: The implementation of the method as a callable value
628 that takes an iterator of request values and a ServicerContext object and
629 returns a response value. Only non-None if cardinality is
630 cardinality.Cardinality.STREAM_UNARY and style is style.Service.INLINE.
631 stream_stream_inline: The implementation of the method as a callable value
632 that takes an iterator of request values and a ServicerContext object and
633 returns an iterator of response values. Only non-None if cardinality is
634 cardinality.Cardinality.STREAM_STREAM and style is style.Service.INLINE.
635 unary_unary_event: The implementation of the method as a callable value that
636 takes a request value, a response callback to which to pass the response
637 value of the RPC, and a ServicerContext. Only non-None if cardinality is
638 cardinality.Cardinality.UNARY_UNARY and style is style.Service.EVENT.
639 unary_stream_event: The implementation of the method as a callable value
640 that takes a request value, a stream.Consumer to which to pass the
641 response values of the RPC, and a ServicerContext. Only non-None if
642 cardinality is cardinality.Cardinality.UNARY_STREAM and style is
644 stream_unary_event: The implementation of the method as a callable value
645 that takes a response callback to which to pass the response value of the
646 RPC and a ServicerContext and returns a stream.Consumer to which the
647 request values of the RPC should be passed. Only non-None if cardinality
648 is cardinality.Cardinality.STREAM_UNARY and style is style.Service.EVENT.
649 stream_stream_event: The implementation of the method as a callable value
650 that takes a stream.Consumer to which to pass the response values of the
651 RPC and a ServicerContext and returns a stream.Consumer to which the
652 request values of the RPC should be passed. Only non-None if cardinality
653 is cardinality.Cardinality.STREAM_STREAM and style is
658 class MultiMethodImplementation(six.with_metaclass(abc.ABCMeta)):
659 """A general type able to service many methods."""
662 def service(self, group, method, response_consumer, context):
666 group: The group identifier of the RPC.
667 method: The method identifier of the RPC.
668 response_consumer: A stream.Consumer to be called to accept the response
670 context: a ServicerContext object.
673 A stream.Consumer with which to accept the request values of the RPC. The
674 consumer returned from this method may or may not be invoked to
675 completion: in the case of RPC abortion, RPC Framework will simply stop
676 passing values to this object. Implementations must not assume that this
677 object will be called to completion of the request stream or even called
681 abandonment.Abandoned: May or may not be raised when the RPC has been
683 NoSuchMethodError: If this MultiMethod does not recognize the given group
684 and name for the RPC and is not able to service the RPC.
686 raise NotImplementedError()
690 """Affords RPC invocation via generic methods."""
700 protocol_options=None):
701 """Invokes a unary-request-unary-response method.
703 This method blocks until either returning the response value of the RPC
704 (in the event of RPC completion) or raising an exception (in the event of
708 group: The group identifier of the RPC.
709 method: The method identifier of the RPC.
710 request: The request value for the RPC.
711 timeout: A duration of time in seconds to allow for the RPC.
712 metadata: A metadata value to be passed to the service-side of the RPC.
713 with_call: Whether or not to include return a Call for the RPC in addition
715 protocol_options: A value specified by the provider of a Face interface
716 implementation affording custom state and behavior.
719 The response value for the RPC, and a Call for the RPC if with_call was
720 set to True at invocation.
723 AbortionError: Indicating that the RPC was aborted.
725 raise NotImplementedError()
734 protocol_options=None):
735 """Invokes a unary-request-unary-response method.
738 group: The group identifier of the RPC.
739 method: The method identifier of the RPC.
740 request: The request value for the RPC.
741 timeout: A duration of time in seconds to allow for the RPC.
742 metadata: A metadata value to be passed to the service-side of the RPC.
743 protocol_options: A value specified by the provider of a Face interface
744 implementation affording custom state and behavior.
747 An object that is both a Call for the RPC and a future.Future. In the
748 event of RPC completion, the return Future's result value will be the
749 response value of the RPC. In the event of RPC abortion, the returned
750 Future's exception value will be an AbortionError.
752 raise NotImplementedError()
761 protocol_options=None):
762 """Invokes a unary-request-stream-response method.
765 group: The group identifier of the RPC.
766 method: The method identifier of the RPC.
767 request: The request value for the RPC.
768 timeout: A duration of time in seconds to allow for the RPC.
769 metadata: A metadata value to be passed to the service-side of the RPC.
770 protocol_options: A value specified by the provider of a Face interface
771 implementation affording custom state and behavior.
774 An object that is both a Call for the RPC and an iterator of response
775 values. Drawing response values from the returned iterator may raise
776 AbortionError indicating abortion of the RPC.
778 raise NotImplementedError()
788 protocol_options=None):
789 """Invokes a stream-request-unary-response method.
791 This method blocks until either returning the response value of the RPC
792 (in the event of RPC completion) or raising an exception (in the event of
796 group: The group identifier of the RPC.
797 method: The method identifier of the RPC.
798 request_iterator: An iterator that yields request values for the RPC.
799 timeout: A duration of time in seconds to allow for the RPC.
800 metadata: A metadata value to be passed to the service-side of the RPC.
801 with_call: Whether or not to include return a Call for the RPC in addition
803 protocol_options: A value specified by the provider of a Face interface
804 implementation affording custom state and behavior.
807 The response value for the RPC, and a Call for the RPC if with_call was
808 set to True at invocation.
811 AbortionError: Indicating that the RPC was aborted.
813 raise NotImplementedError()
822 protocol_options=None):
823 """Invokes a stream-request-unary-response method.
826 group: The group identifier of the RPC.
827 method: The method identifier of the RPC.
828 request_iterator: An iterator that yields request values for the RPC.
829 timeout: A duration of time in seconds to allow for the RPC.
830 metadata: A metadata value to be passed to the service-side of the RPC.
831 protocol_options: A value specified by the provider of a Face interface
832 implementation affording custom state and behavior.
835 An object that is both a Call for the RPC and a future.Future. In the
836 event of RPC completion, the return Future's result value will be the
837 response value of the RPC. In the event of RPC abortion, the returned
838 Future's exception value will be an AbortionError.
840 raise NotImplementedError()
849 protocol_options=None):
850 """Invokes a stream-request-stream-response method.
853 group: The group identifier of the RPC.
854 method: The method identifier of the RPC.
855 request_iterator: An iterator that yields request values for the RPC.
856 timeout: A duration of time in seconds to allow for the RPC.
857 metadata: A metadata value to be passed to the service-side of the RPC.
858 protocol_options: A value specified by the provider of a Face interface
859 implementation affording custom state and behavior.
862 An object that is both a Call for the RPC and an iterator of response
863 values. Drawing response values from the returned iterator may raise
864 AbortionError indicating abortion of the RPC.
866 raise NotImplementedError()
877 protocol_options=None):
878 """Event-driven invocation of a unary-request-unary-response method.
881 group: The group identifier of the RPC.
882 method: The method identifier of the RPC.
883 request: The request value for the RPC.
884 receiver: A ResponseReceiver to be passed the response data of the RPC.
885 abortion_callback: A callback to be called and passed an Abortion value
886 in the event of RPC abortion.
887 timeout: A duration of time in seconds to allow for the RPC.
888 metadata: A metadata value to be passed to the service-side of the RPC.
889 protocol_options: A value specified by the provider of a Face interface
890 implementation affording custom state and behavior.
895 raise NotImplementedError()
906 protocol_options=None):
907 """Event-driven invocation of a unary-request-stream-response method.
910 group: The group identifier of the RPC.
911 method: The method identifier of the RPC.
912 request: The request value for the RPC.
913 receiver: A ResponseReceiver to be passed the response data of the RPC.
914 abortion_callback: A callback to be called and passed an Abortion value
915 in the event of RPC abortion.
916 timeout: A duration of time in seconds to allow for the RPC.
917 metadata: A metadata value to be passed to the service-side of the RPC.
918 protocol_options: A value specified by the provider of a Face interface
919 implementation affording custom state and behavior.
924 raise NotImplementedError()
934 protocol_options=None):
935 """Event-driven invocation of a unary-request-unary-response method.
938 group: The group identifier of the RPC.
939 method: The method identifier of the RPC.
940 receiver: A ResponseReceiver to be passed the response data of the RPC.
941 abortion_callback: A callback to be called and passed an Abortion value
942 in the event of RPC abortion.
943 timeout: A duration of time in seconds to allow for the RPC.
944 metadata: A metadata value to be passed to the service-side of the RPC.
945 protocol_options: A value specified by the provider of a Face interface
946 implementation affording custom state and behavior.
949 A pair of a Call object for the RPC and a stream.Consumer to which the
950 request values of the RPC should be passed.
952 raise NotImplementedError()
962 protocol_options=None):
963 """Event-driven invocation of a unary-request-stream-response method.
966 group: The group identifier of the RPC.
967 method: The method identifier of the RPC.
968 receiver: A ResponseReceiver to be passed the response data of the RPC.
969 abortion_callback: A callback to be called and passed an Abortion value
970 in the event of RPC abortion.
971 timeout: A duration of time in seconds to allow for the RPC.
972 metadata: A metadata value to be passed to the service-side of the RPC.
973 protocol_options: A value specified by the provider of a Face interface
974 implementation affording custom state and behavior.
977 A pair of a Call object for the RPC and a stream.Consumer to which the
978 request values of the RPC should be passed.
980 raise NotImplementedError()
984 """Creates a UnaryUnaryMultiCallable for a unary-unary method.
987 group: The group identifier of the RPC.
988 method: The method identifier of the RPC.
991 A UnaryUnaryMultiCallable value for the named unary-unary method.
993 raise NotImplementedError()
997 """Creates a UnaryStreamMultiCallable for a unary-stream method.
1000 group: The group identifier of the RPC.
1001 method: The method identifier of the RPC.
1004 A UnaryStreamMultiCallable value for the name unary-stream method.
1006 raise NotImplementedError()
1010 """Creates a StreamUnaryMultiCallable for a stream-unary method.
1013 group: The group identifier of the RPC.
1014 method: The method identifier of the RPC.
1017 A StreamUnaryMultiCallable value for the named stream-unary method.
1019 raise NotImplementedError()
1023 """Creates a StreamStreamMultiCallable for a stream-stream method.
1026 group: The group identifier of the RPC.
1027 method: The method identifier of the RPC.
1030 A StreamStreamMultiCallable value for the named stream-stream method.
1032 raise NotImplementedError()
1036 """Affords RPC invocation via attributes corresponding to afforded methods.
1038 Instances of this type may be scoped to a single group so that attribute
1039 access is unambiguous.
1041 Instances of this type respond to attribute access as follows: if the
1042 requested attribute is the name of a unary-unary method, the value of the
1043 attribute will be a UnaryUnaryMultiCallable with which to invoke an RPC; if
1044 the requested attribute is the name of a unary-stream method, the value of the
1045 attribute will be a UnaryStreamMultiCallable with which to invoke an RPC; if
1046 the requested attribute is the name of a stream-unary method, the value of the
1047 attribute will be a StreamUnaryMultiCallable with which to invoke an RPC; and
1048 if the requested attribute is the name of a stream-stream method, the value of
1049 the attribute will be a StreamStreamMultiCallable with which to invoke an RPC.
def __call__(self, request, timeout, metadata=None, protocol_options=None)
def __init__(self, group, method)
def details(self, details)
def future_unary_unary(self, group, method, request, timeout, metadata=None, protocol_options=None)
def __call__(self, request, timeout, metadata=None, with_call=False, protocol_options=None)
def stream_unary(self, group, method)
def blocking_unary_unary(self, group, method, request, timeout, metadata=None, with_call=False, protocol_options=None)
def blocking_stream_unary(self, group, method, request_iterator, timeout, metadata=None, with_call=False, protocol_options=None)
def initial_metadata(self)
def event(self, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def __call__(self, request_iterator, timeout, metadata=None, protocol_options=None)
def event_unary_stream(self, group, method, request, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def event(self, request, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def __call__(self, request_iterator, timeout, metadata=None, with_call=False, protocol_options=None)
def unary_stream(self, group, method)
def event(self, request, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def event_stream_unary(self, group, method, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def __init__(self, initial_metadata, terminal_metadata, code, details)
def initial_metadata(self, initial_metadata)
def complete(self, terminal_metadata, code, details)
def response(self, response)
def inline_unary_stream(self, group, method, request, timeout, metadata=None, protocol_options=None)
def initial_metadata(self, initial_metadata)
def stream_stream(self, group, method)
def add_abortion_callback(self, abortion_callback)
def terminal_metadata(self, terminal_metadata)
def inline_stream_stream(self, group, method, request_iterator, timeout, metadata=None, protocol_options=None)
def future_stream_unary(self, group, method, request_iterator, timeout, metadata=None, protocol_options=None)
def protocol_context(self)
def invocation_metadata(self)
def event(self, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def terminal_metadata(self)
def event_unary_unary(self, group, method, request, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def service(self, group, method, response_consumer, context)
def event_stream_stream(self, group, method, receiver, abortion_callback, timeout, metadata=None, protocol_options=None)
def future(self, request, timeout, metadata=None, protocol_options=None)
def unary_unary(self, group, method)
def future(self, request_iterator, timeout, metadata=None, protocol_options=None)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:18