Stay organized with collections
Save and categorize content based on your preferences.
Handles a single message from the client and returns the result as a
stream. The server will interpret the message frame and respond with
message frames to the client.
For more information about retries and long-running operations, see
Understand connectors.
Arguments
Parameters
name
string
Required. The database session in which the adapter request is processed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Method: googleapis.spanner.v1.projects.instances.databases.sessions.adaptMessage\n\nHandles a single message from the client and returns the result as a\nstream. The server will interpret the message frame and respond with\nmessage frames to the client.\n\nFor more information about retries and long-running operations, see\n[Understand connectors]().\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`AdaptMessageResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/spanner/v1/Overview#AdaptMessageResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/adaptMessage). \n\n### YAML\n\n```yaml\n- adaptMessage:\n call: googleapis.spanner.v1.projects.instances.databases.sessions.adaptMessage\n args:\n name: ...\n body:\n attachments: ...\n payload: ...\n protocol: ...\n result: adaptMessageResult\n```\n\n### JSON\n\n```json\n[\n {\n \"adaptMessage\": {\n \"call\": \"googleapis.spanner.v1.projects.instances.databases.sessions.adaptMessage\",\n \"args\": {\n \"name\": \"...\",\n \"body\": {\n \"attachments\": \"...\",\n \"payload\": \"...\",\n \"protocol\": \"...\"\n }\n },\n \"result\": \"adaptMessageResult\"\n }\n }\n]\n```"]]