def Export(self, request, context): context.set_code(StatusCode.UNAVAILABLE) context.send_initial_metadata( (("google.rpc.retryinfo-bin", RetryInfo().SerializeToString()), )) context.set_trailing_metadata((( "google.rpc.retryinfo-bin", RetryInfo(retry_delay=Duration(seconds=4)).SerializeToString(), ), )) return ExportLogsServiceResponse()
def Export(self, request, context): context.set_code(StatusCode.ALREADY_EXISTS) return ExportLogsServiceResponse()
def Export(self, request, context): context.set_code(StatusCode.UNAVAILABLE) return ExportLogsServiceResponse()