response

public abstract FunctionDeclaration.Builder response(Schema response)

Setter for response.

response: Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.


@CanIgnoreReturnValue()
public FunctionDeclaration.Builder response(Schema.Builder responseBuilder)

Setter for response builder.

response: Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.