def to_runner_api_parameter(self, context): # Sort the output tags so that the order is deterministic and we are able # to test equality on a roundtrip through the to/from proto apis. return (common_urns.primitives.TEST_STREAM.urn, beam_runner_api_pb2.TestStreamPayload( coder_id=context.coders.get_id(self.coder), events=[e.to_runner_api(self.coder) for e in self._events], endpoint=ApiServiceDescriptor(url=self._endpoint)))
def to_runner_api_parameter(self, context): return (common_urns.primitives.TEST_STREAM.urn, beam_runner_api_pb2.TestStreamPayload( coder_id=context.coders.get_id(self.coder), events=[e.to_runner_api(self.coder) for e in self._events]))