Reference documentation and code samples for the Google Apps Chat V1 Client class FindDirectMessageRequest.
A request to get direct message space based on the user resource.
Generated from protobuf messagegoogle.chat.v1.FindDirectMessageRequest
Namespace
Google \ Apps \ Chat \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Resource name of the user to find direct message with. Format:users/{user}, where{user}is either theidfor thepersonfrom the People API, or theidfor theuserin the Directory API. For example, if the People API profile ID is123456789, you can find a direct message with that person by usingusers/123456789as thename. Whenauthenticated as a user, you can use the email as an alias for{user}. For example,users/example@gmail.comwhereexample@gmail.comis the email of the Google Chat user.
getName
Required. Resource name of the user to find direct message with.
Format:users/{user}, where{user}is either theidfor thepersonfrom the
People API, or theidfor theuserin the Directory API. For example, if the People API profile ID is123456789, you can find a direct message with that person by usingusers/123456789as thename. Whenauthenticated as a
user,
you can use the email as an alias for{user}. For example,users/example@gmail.comwhereexample@gmail.comis the email of the
Google Chat user.
Returns
Type
Description
string
setName
Required. Resource name of the user to find direct message with.
Format:users/{user}, where{user}is either theidfor thepersonfrom the
People API, or theidfor theuserin the Directory API. For example, if the People API profile ID is123456789, you can find a direct message with that person by usingusers/123456789as thename. Whenauthenticated as a
user,
you can use the email as an alias for{user}. For example,users/example@gmail.comwhereexample@gmail.comis the email of the
Google Chat user.
[[["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,["# Google Apps Chat V1 Client - Class FindDirectMessageRequest (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.FindDirectMessageRequest)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.FindDirectMessageRequest)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.FindDirectMessageRequest)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.FindDirectMessageRequest)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.FindDirectMessageRequest)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.FindDirectMessageRequest)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.FindDirectMessageRequest)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.FindDirectMessageRequest)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.FindDirectMessageRequest)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.FindDirectMessageRequest)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.FindDirectMessageRequest)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.FindDirectMessageRequest) \nReference documentation and code samples for the Google Apps Chat V1 Client class FindDirectMessageRequest.\n\nA request to get direct message space based on the user resource.\n\nGenerated from protobuf message `google.chat.v1.FindDirectMessageRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Resource name of the user to find direct message with.\n\nFormat: `users/{user}`, where `{user}` is either the `id` for the\n[person](https://developers.google.com/people/api/rest/v1/people) from the\nPeople API, or the `id` for the\n[user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)\nin the Directory API. For example, if the People API profile ID is\n`123456789`, you can find a direct message with that person by using\n`users/123456789` as the `name`. When [authenticated as a\nuser](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),\nyou can use the email as an alias for `{user}`. For example,\n`users/example@gmail.com` where `example@gmail.com` is the email of the\nGoogle Chat user.\n\n### setName\n\nRequired. Resource name of the user to find direct message with.\n\nFormat: `users/{user}`, where `{user}` is either the `id` for the\n[person](https://developers.google.com/people/api/rest/v1/people) from the\nPeople API, or the `id` for the\n[user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)\nin the Directory API. For example, if the People API profile ID is\n`123456789`, you can find a direct message with that person by using\n`users/123456789` as the `name`. When [authenticated as a\nuser](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),\nyou can use the email as an alias for `{user}`. For example,\n`users/example@gmail.com` where `example@gmail.com` is the email of the\nGoogle Chat user."]]