target.apidocs.com.google.api.services.factchecktools.v1alpha1.FactCheckTools.Claims.Search.html Maven / Gradle / Ivy
The newest version!
FactCheckTools.Claims.Search (Fact Check Tools API v1alpha1-rev20240929-2.0.0)
com.google.api.services.factchecktools.v1alpha1
Class FactCheckTools.Claims.Search
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
-
- com.google.api.services.factchecktools.v1alpha1.FactCheckToolsRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>
-
- com.google.api.services.factchecktools.v1alpha1.FactCheckTools.Claims.Search
-
- Enclosing class:
- FactCheckTools.Claims
public class FactCheckTools.Claims.Search
extends FactCheckToolsRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Modifier
Constructor and Description
protected
Search()
Search through fact-checked claims.
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
com.google.api.client.http.HttpRequest
buildHttpRequestUsingHead()
com.google.api.client.http.HttpResponse
executeUsingHead()
String
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".
Integer
getMaxAgeDays()
The maximum age of the returned search results, in days.
Integer
getOffset()
An integer that specifies the current offset (that is, starting result location) in search results.
Integer
getPageSize()
The pagination size.
String
getPageToken()
The pagination token.
String
getQuery()
Textual query string.
String
getReviewPublisherSiteFilter()
The review publisher site to filter results by, e.g.
FactCheckTools.Claims.Search
set(String parameterName,
Object value)
FactCheckTools.Claims.Search
set$Xgafv(String $Xgafv)
V1 error format.
FactCheckTools.Claims.Search
setAccessToken(String accessToken)
OAuth access token.
FactCheckTools.Claims.Search
setAlt(String alt)
Data format for response.
FactCheckTools.Claims.Search
setCallback(String callback)
JSONP
FactCheckTools.Claims.Search
setFields(String fields)
Selector specifying which fields to include in a partial response.
FactCheckTools.Claims.Search
setKey(String key)
API key.
FactCheckTools.Claims.Search
setLanguageCode(String languageCode)
The BCP-47 language code, such as "en-US" or "sr-Latn".
FactCheckTools.Claims.Search
setMaxAgeDays(Integer maxAgeDays)
The maximum age of the returned search results, in days.
FactCheckTools.Claims.Search
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
FactCheckTools.Claims.Search
setOffset(Integer offset)
An integer that specifies the current offset (that is, starting result location) in search
results.
FactCheckTools.Claims.Search
setPageSize(Integer pageSize)
The pagination size.
FactCheckTools.Claims.Search
setPageToken(String pageToken)
The pagination token.
FactCheckTools.Claims.Search
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
FactCheckTools.Claims.Search
setQuery(String query)
Textual query string.
FactCheckTools.Claims.Search
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
FactCheckTools.Claims.Search
setReviewPublisherSiteFilter(String reviewPublisherSiteFilter)
The review publisher site to filter results by, e.g.
FactCheckTools.Claims.Search
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
FactCheckTools.Claims.Search
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
-
Methods inherited from class com.google.api.services.factchecktools.v1alpha1.FactCheckToolsRequest
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
-
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
-
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
Search
protected Search()
Search through fact-checked claims.
Create a request for the method "claims.search".
This request holds the parameters needed by the the factchecktools server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
FactCheckTools.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
- Since:
- 1.13
-
Method Detail
-
executeUsingHead
public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
- Overrides:
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>
- Throws:
IOException
-
buildHttpRequestUsingHead
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
- Overrides:
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse>
- Throws:
IOException
-
set$Xgafv
public FactCheckTools.Claims.Search set$Xgafv(String $Xgafv)
Description copied from class: FactCheckToolsRequest
V1 error format.
-
setAccessToken
public FactCheckTools.Claims.Search setAccessToken(String accessToken)
Description copied from class: FactCheckToolsRequest
OAuth access token.
-
setAlt
public FactCheckTools.Claims.Search setAlt(String alt)
Description copied from class: FactCheckToolsRequest
Data format for response.
-
setCallback
public FactCheckTools.Claims.Search setCallback(String callback)
Description copied from class: FactCheckToolsRequest
JSONP
-
setFields
public FactCheckTools.Claims.Search setFields(String fields)
Description copied from class: FactCheckToolsRequest
Selector specifying which fields to include in a partial response.
-
setKey
public FactCheckTools.Claims.Search setKey(String key)
Description copied from class: FactCheckToolsRequest
API key. Your API key identifies your project and provides you with API access, quota, and
reports. Required unless you provide an OAuth 2.0 token.
-
setOauthToken
public FactCheckTools.Claims.Search setOauthToken(String oauthToken)
Description copied from class: FactCheckToolsRequest
OAuth 2.0 token for the current user.
-
setPrettyPrint
public FactCheckTools.Claims.Search setPrettyPrint(Boolean prettyPrint)
Description copied from class: FactCheckToolsRequest
Returns response with indentations and line breaks.
-
setQuotaUser
public FactCheckTools.Claims.Search setQuotaUser(String quotaUser)
Description copied from class: FactCheckToolsRequest
Available to use for quota purposes for server-side applications. Can be any arbitrary string
assigned to a user, but should not exceed 40 characters.
-
setUploadType
public FactCheckTools.Claims.Search setUploadType(String uploadType)
Description copied from class: FactCheckToolsRequest
Legacy upload protocol for media (e.g. "media", "multipart").
-
setUploadProtocol
public FactCheckTools.Claims.Search setUploadProtocol(String uploadProtocol)
Description copied from class: FactCheckToolsRequest
Upload protocol for media (e.g. "raw", "multipart").
-
getLanguageCode
public String getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by
language, though we do not currently consider the region.
-
setLanguageCode
public FactCheckTools.Claims.Search setLanguageCode(String languageCode)
The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by
language, though we do not currently consider the region.
-
getMaxAgeDays
public Integer getMaxAgeDays()
The maximum age of the returned search results, in days. Age is determined by either claim date or
review date, whichever is newer.
-
setMaxAgeDays
public FactCheckTools.Claims.Search setMaxAgeDays(Integer maxAgeDays)
The maximum age of the returned search results, in days. Age is determined by either claim
date or review date, whichever is newer.
-
getOffset
public Integer getOffset()
An integer that specifies the current offset (that is, starting result location) in search results.
This field is only considered if `page_token` is unset. For example, 0 means to return results
starting from the first matching result, and 10 means to return from the 11th result.
-
setOffset
public FactCheckTools.Claims.Search setOffset(Integer offset)
An integer that specifies the current offset (that is, starting result location) in search
results. This field is only considered if `page_token` is unset. For example, 0 means to
return results starting from the first matching result, and 10 means to return from the
11th result.
-
getPageSize
public Integer getPageSize()
The pagination size. We will return up to that many results. Defaults to 10 if not set.
-
setPageSize
public FactCheckTools.Claims.Search setPageSize(Integer pageSize)
The pagination size. We will return up to that many results. Defaults to 10 if not set.
-
getPageToken
public String getPageToken()
The pagination token. You may provide the `next_page_token` returned from a previous List request,
if any, in order to get the next page. All other fields must have the same values as in the
previous request.
-
setPageToken
public FactCheckTools.Claims.Search setPageToken(String pageToken)
The pagination token. You may provide the `next_page_token` returned from a previous List
request, if any, in order to get the next page. All other fields must have the same values
as in the previous request.
-
getQuery
public String getQuery()
Textual query string. Required unless `review_publisher_site_filter` is specified.
-
setQuery
public FactCheckTools.Claims.Search setQuery(String query)
Textual query string. Required unless `review_publisher_site_filter` is specified.
-
getReviewPublisherSiteFilter
public String getReviewPublisherSiteFilter()
The review publisher site to filter results by, e.g. nytimes.com.
-
setReviewPublisherSiteFilter
public FactCheckTools.Claims.Search setReviewPublisherSiteFilter(String reviewPublisherSiteFilter)
The review publisher site to filter results by, e.g. nytimes.com.
-
set
public FactCheckTools.Claims.Search set(String parameterName,
Object value)
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy