FirebaseFunctions Framework Reference

Enumerations

The following enumerations are available globally.

  • A convenience type used to receive both the streaming callable function’s yielded messages andits return value.

    This can be used as the genericResponse parameter toCallable to receive both theyielded messages and final return value of the streaming callable function.

    Declaration

    Swift

    @available(macOS12.0,iOS15.0,watchOS8.0,tvOS15.0,*)publicenumStreamResponse<Message:Decodable&Sendable,Result:Decodable&Sendable>:Decodable,Sendable,StreamResponseProtocol
  • The set of error status codes that can be returned from a Callable HTTPS trigger. These are thecanonical error codes for Google APIs, as documented here:https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26

    Declaration

    Swift

    @objc(FIRFunctionsErrorCode)publicenumFunctionsErrorCode:Int,Sendable

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-15 UTC.