public final class Query
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Vault API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Query() |
| Modifier and Type | Method and Description |
|---|---|
Query |
clone() |
AccountInfo |
getAccountInfo()
Required when **SearchMethod** is **ACCOUNT**.
|
CalendarOptions |
getCalendarOptions()
Set Calendar search-specific options.
|
String |
getCorpus()
The Google Workspace service to search.
|
String |
getDataScope()
The data source to search.
|
DriveDocumentInfo |
getDriveDocumentInfo()
Required when **SearchMethod** is **DRIVE_DOCUMENT**.
|
DriveOptions |
getDriveOptions()
Set Drive search-specific options.
|
String |
getEndTime()
The end time for the search query.
|
GeminiOptions |
getGeminiOptions()
Set Gemini search-specific options.
|
HangoutsChatInfo |
getHangoutsChatInfo()
Required when **SearchMethod** is **ROOM**.
|
HangoutsChatOptions |
getHangoutsChatOptions()
Set Chat search-specific options.
|
MailOptions |
getMailOptions()
Set Gmail search-specific options.
|
String |
getMethod()
The entity to search.
|
OrgUnitInfo |
getOrgUnitInfo()
Required when **SearchMethod** is **ORG_UNIT**.
|
String |
getSearchMethod()
The search method to use.
|
SharedDriveInfo |
getSharedDriveInfo()
Required when **SearchMethod** is **SHARED_DRIVE**.
|
SitesUrlInfo |
getSitesUrlInfo()
Required when **SearchMethod** is **SITES_URL**.
|
String |
getStartTime()
The start time for the search query.
|
TeamDriveInfo |
getTeamDriveInfo()
Required when **SearchMethod** is **TEAM_DRIVE**.
|
String |
getTerms()
Service-specific [search operators](https://support.google.com/vault/answer/2474474) to filter
search results.
|
String |
getTimeZone()
The time zone name.
|
VoiceOptions |
getVoiceOptions()
Set Voice search-specific options.
|
Query |
set(String fieldName,
Object value) |
Query |
setAccountInfo(AccountInfo accountInfo)
Required when **SearchMethod** is **ACCOUNT**.
|
Query |
setCalendarOptions(CalendarOptions calendarOptions)
Set Calendar search-specific options.
|
Query |
setCorpus(String corpus)
The Google Workspace service to search.
|
Query |
setDataScope(String dataScope)
The data source to search.
|
Query |
setDriveDocumentInfo(DriveDocumentInfo driveDocumentInfo)
Required when **SearchMethod** is **DRIVE_DOCUMENT**.
|
Query |
setDriveOptions(DriveOptions driveOptions)
Set Drive search-specific options.
|
Query |
setEndTime(String endTime)
The end time for the search query.
|
Query |
setGeminiOptions(GeminiOptions geminiOptions)
Set Gemini search-specific options.
|
Query |
setHangoutsChatInfo(HangoutsChatInfo hangoutsChatInfo)
Required when **SearchMethod** is **ROOM**.
|
Query |
setHangoutsChatOptions(HangoutsChatOptions hangoutsChatOptions)
Set Chat search-specific options.
|
Query |
setMailOptions(MailOptions mailOptions)
Set Gmail search-specific options.
|
Query |
setMethod(String method)
The entity to search.
|
Query |
setOrgUnitInfo(OrgUnitInfo orgUnitInfo)
Required when **SearchMethod** is **ORG_UNIT**.
|
Query |
setSearchMethod(String searchMethod)
The search method to use.
|
Query |
setSharedDriveInfo(SharedDriveInfo sharedDriveInfo)
Required when **SearchMethod** is **SHARED_DRIVE**.
|
Query |
setSitesUrlInfo(SitesUrlInfo sitesUrlInfo)
Required when **SearchMethod** is **SITES_URL**.
|
Query |
setStartTime(String startTime)
The start time for the search query.
|
Query |
setTeamDriveInfo(TeamDriveInfo teamDriveInfo)
Required when **SearchMethod** is **TEAM_DRIVE**.
|
Query |
setTerms(String terms)
Service-specific [search operators](https://support.google.com/vault/answer/2474474) to filter
search results.
|
Query |
setTimeZone(String timeZone)
The time zone name.
|
Query |
setVoiceOptions(VoiceOptions voiceOptions)
Set Voice search-specific options.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic AccountInfo getAccountInfo()
null for nonepublic Query setAccountInfo(AccountInfo accountInfo)
accountInfo - accountInfo or null for nonepublic CalendarOptions getCalendarOptions()
null for nonepublic Query setCalendarOptions(CalendarOptions calendarOptions)
calendarOptions - calendarOptions or null for nonepublic String getCorpus()
null for nonepublic Query setCorpus(String corpus)
corpus - corpus or null for nonepublic String getDataScope()
null for nonepublic Query setDataScope(String dataScope)
dataScope - dataScope or null for nonepublic DriveDocumentInfo getDriveDocumentInfo()
null for nonepublic Query setDriveDocumentInfo(DriveDocumentInfo driveDocumentInfo)
driveDocumentInfo - driveDocumentInfo or null for nonepublic DriveOptions getDriveOptions()
null for nonepublic Query setDriveOptions(DriveOptions driveOptions)
driveOptions - driveOptions or null for nonepublic String getEndTime()
null for nonepublic Query setEndTime(String endTime)
endTime - endTime or null for nonepublic GeminiOptions getGeminiOptions()
null for nonepublic Query setGeminiOptions(GeminiOptions geminiOptions)
geminiOptions - geminiOptions or null for nonepublic HangoutsChatInfo getHangoutsChatInfo()
null for nonepublic Query setHangoutsChatInfo(HangoutsChatInfo hangoutsChatInfo)
hangoutsChatInfo - hangoutsChatInfo or null for nonepublic HangoutsChatOptions getHangoutsChatOptions()
null for nonepublic Query setHangoutsChatOptions(HangoutsChatOptions hangoutsChatOptions)
hangoutsChatOptions - hangoutsChatOptions or null for nonepublic MailOptions getMailOptions()
null for nonepublic Query setMailOptions(MailOptions mailOptions)
mailOptions - mailOptions or null for nonepublic String getMethod()
null for nonepublic Query setMethod(String method)
method - method or null for nonepublic OrgUnitInfo getOrgUnitInfo()
null for nonepublic Query setOrgUnitInfo(OrgUnitInfo orgUnitInfo)
orgUnitInfo - orgUnitInfo or null for nonepublic String getSearchMethod()
null for nonepublic Query setSearchMethod(String searchMethod)
searchMethod - searchMethod or null for nonepublic SharedDriveInfo getSharedDriveInfo()
null for nonepublic Query setSharedDriveInfo(SharedDriveInfo sharedDriveInfo)
sharedDriveInfo - sharedDriveInfo or null for nonepublic SitesUrlInfo getSitesUrlInfo()
null for nonepublic Query setSitesUrlInfo(SitesUrlInfo sitesUrlInfo)
sitesUrlInfo - sitesUrlInfo or null for nonepublic String getStartTime()
null for nonepublic Query setStartTime(String startTime)
startTime - startTime or null for nonepublic TeamDriveInfo getTeamDriveInfo()
null for nonepublic Query setTeamDriveInfo(TeamDriveInfo teamDriveInfo)
teamDriveInfo - teamDriveInfo or null for nonepublic String getTerms()
null for nonepublic Query setTerms(String terms)
terms - terms or null for nonepublic String getTimeZone()
null for nonepublic Query setTimeZone(String timeZone)
timeZone - timeZone or null for nonepublic VoiceOptions getVoiceOptions()
null for nonepublic Query setVoiceOptions(VoiceOptions voiceOptions)
voiceOptions - voiceOptions or null for nonepublic Query set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Query clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.