[[["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-09-04 UTC."],[],[],null,["# Interface AdaptMessageRequestOrBuilder (0.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.0 (latest)](/java/docs/reference/google-cloud-spanneradapter/latest/com.google.spanner.adapter.v1.AdaptMessageRequestOrBuilder)\n- [0.6.0](/java/docs/reference/google-cloud-spanneradapter/0.6.0/com.google.spanner.adapter.v1.AdaptMessageRequestOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-spanneradapter/0.4.0/com.google.spanner.adapter.v1.AdaptMessageRequestOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-spanneradapter/0.3.0/com.google.spanner.adapter.v1.AdaptMessageRequestOrBuilder) \n\n public interface AdaptMessageRequestOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### containsAttachments(String key)\n\n public abstract boolean containsAttachments(String key)\n\nOptional. Opaque request state passed by the client to the server.\n\n`map\u003cstring, string\u003e attachments = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAttachments() (deprecated)\n\n public abstract Map\u003cString,String\u003e getAttachments()\n\nUse [#getAttachmentsMap()](/java/docs/reference/google-cloud-spanneradapter/latest/com.google.spanner.adapter.v1.AdaptMessageRequestOrBuilder#com_google_spanner_adapter_v1_AdaptMessageRequestOrBuilder_getAttachmentsMap__) instead.\n\n### getAttachmentsCount()\n\n public abstract int getAttachmentsCount()\n\nOptional. Opaque request state passed by the client to the server.\n\n`map\u003cstring, string\u003e attachments = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAttachmentsMap()\n\n public abstract Map\u003cString,String\u003e getAttachmentsMap()\n\nOptional. Opaque request state passed by the client to the server.\n\n`map\u003cstring, string\u003e attachments = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAttachmentsOrDefault(String key, String defaultValue)\n\n public abstract String getAttachmentsOrDefault(String key, String defaultValue)\n\nOptional. Opaque request state passed by the client to the server.\n\n`map\u003cstring, string\u003e attachments = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAttachmentsOrThrow(String key)\n\n public abstract String getAttachmentsOrThrow(String key)\n\nOptional. Opaque request state passed by the client to the server.\n\n`map\u003cstring, string\u003e attachments = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getName()\n\n public abstract String getName()\n\nRequired. The database session in which the adapter request is processed.\n\n`\nstring name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nRequired. The database session in which the adapter request is processed.\n\n`\nstring name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getPayload()\n\n public abstract ByteString getPayload()\n\nOptional. Uninterpreted bytes from the underlying wire protocol.\n\n`bytes payload = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getProtocol()\n\n public abstract String getProtocol()\n\nRequired. Identifier for the underlying wire protocol.\n\n`string protocol = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getProtocolBytes()\n\n public abstract ByteString getProtocolBytes()\n\nRequired. Identifier for the underlying wire protocol.\n\n`string protocol = 2 [(.google.api.field_behavior) = REQUIRED];`"]]