method property

String? method
getter/setter pair

The entity to search.

This field replaces searchMethod to support shared drives. When searchMethod is TEAM_DRIVE, the response of this field is SHARED_DRIVE. Possible string values are:

  • "SEARCH_METHOD_UNSPECIFIED" : A search method must be specified or else it is rejected.
  • "ACCOUNT" : Search the data of the accounts specified in AccountInfo.
  • "ORG_UNIT" : Search the data of all accounts in the organizational unit specified in OrgUnitInfo.
  • "TEAM_DRIVE" : Search the data in the Team Drive specified in team_drive_info.
  • "ENTIRE_ORG" : Search the data of all accounts in the organization. Supported only for Gmail. When specified, you don't need to specify AccountInfo or OrgUnitInfo.
  • "ROOM" : Search messages in the Chat spaces specified in HangoutsChatInfo.
  • "SITES_URL" : Search for sites by the published site URLs specified in SitesUrlInfo.
  • "SHARED_DRIVE" : Search the files in the shared drives specified in SharedDriveInfo.

Implementation

core.String? method;