Class SpacesResource.MessagesResource.SearchRequest
Searches for messages in Google Chat that the calling user has access to. Returns a list of messages
matching the search criteria. To search across all spaces the user has access to, set parent to
spaces/-. Using any other value for parent results in an INVALID_ARGUMENT error. The returned
messages have their name field populated with the full resource name, which includes the specific
space in which the message resides. This API doesn't return all message types. The types of messages
listed below aren't included in the response. Use ListMessages to list all messages. - Private Messages
that are visible to the authenticated user. - Messages posted by Chat apps in spaces or group chats. -
Messages in a Chat app DM. - Messages from blocked users. - Messages in spaces that the caller has
muted. Requires user
authentication with one
of the following authorization
scopes: -
https://www.googleapis.com/auth/chat.messages.readonly -
https://www.googleapis.com/auth/chat.messages
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.MessagesResource.SearchRequest : HangoutsChatBaseServiceRequest<SearchMessagesResponse>, IClientServiceRequest<SearchMessagesResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService, SearchMessagesRequest, string)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service, SearchMessagesRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| SearchMessagesRequest | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The resource name of the space to search within. To search across all spaces the user has
access to, set this field to spaces/-. Using any other value for parent results in an
INVALID_ARGUMENT error. To limit the search to one or more spaces, use space.name or
space.display_name in the filter.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Search parameter list.
Declaration
protected override void InitParameters()