
target.apidocs.com.google.api.services.factchecktools.v1alpha1.FactCheckTools.Claims.ImageSearch.html Maven / Gradle / Ivy
FactCheckTools.Claims.ImageSearch (Fact Check Tools API v1alpha1-rev20240929-2.0.0)
com.google.api.services.factchecktools.v1alpha1
Class FactCheckTools.Claims.ImageSearch
- 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<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse>
-
- com.google.api.services.factchecktools.v1alpha1.FactCheckTools.Claims.ImageSearch
-
- Enclosing class:
- FactCheckTools.Claims
public class FactCheckTools.Claims.ImageSearch
extends FactCheckToolsRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse>
-
-
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
ImageSearch()
Search through fact-checked claims using an image as the query.
-
Method Summary
-
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
-
ImageSearch
protected ImageSearch()
Search through fact-checked claims using an image as the query.
Create a request for the method "claims.imageSearch".
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<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse>
- Throws:
IOException
-
buildHttpRequestUsingHead
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
- Overrides:
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse>
- Throws:
IOException
-
set$Xgafv
public FactCheckTools.Claims.ImageSearch set$Xgafv(String $Xgafv)
Description copied from class: FactCheckToolsRequest
V1 error format.
-
setAccessToken
public FactCheckTools.Claims.ImageSearch setAccessToken(String accessToken)
Description copied from class: FactCheckToolsRequest
OAuth access token.
-
setAlt
public FactCheckTools.Claims.ImageSearch setAlt(String alt)
Description copied from class: FactCheckToolsRequest
Data format for response.
-
setCallback
public FactCheckTools.Claims.ImageSearch setCallback(String callback)
Description copied from class: FactCheckToolsRequest
JSONP
-
setFields
public FactCheckTools.Claims.ImageSearch setFields(String fields)
Description copied from class: FactCheckToolsRequest
Selector specifying which fields to include in a partial response.
-
setKey
public FactCheckTools.Claims.ImageSearch 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.ImageSearch setOauthToken(String oauthToken)
Description copied from class: FactCheckToolsRequest
OAuth 2.0 token for the current user.
-
setPrettyPrint
public FactCheckTools.Claims.ImageSearch setPrettyPrint(Boolean prettyPrint)
Description copied from class: FactCheckToolsRequest
Returns response with indentations and line breaks.
-
setQuotaUser
public FactCheckTools.Claims.ImageSearch 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.ImageSearch setUploadType(String uploadType)
Description copied from class: FactCheckToolsRequest
Legacy upload protocol for media (e.g. "media", "multipart").
-
setUploadProtocol
public FactCheckTools.Claims.ImageSearch setUploadProtocol(String uploadProtocol)
Description copied from class: FactCheckToolsRequest
Upload protocol for media (e.g. "raw", "multipart").
-
getImageUri
public String getImageUri()
Required. The URI of the source image. This must be a publicly-accessible image HTTP/HTTPS URL.
When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request will be
completed. Your request may fail if the specified host denies the request (e.g. due to request
throttling or DOS prevention), or if Google throttles requests to the site for abuse prevention.
You should not depend on externally-hosted images for production applications.
-
setImageUri
public FactCheckTools.Claims.ImageSearch setImageUri(String imageUri)
Required. The URI of the source image. This must be a publicly-accessible image HTTP/HTTPS
URL. When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request
will be completed. Your request may fail if the specified host denies the request (e.g. due
to request throttling or DOS prevention), or if Google throttles requests to the site for
abuse prevention. You should not depend on externally-hosted images for production
applications.
-
getLanguageCode
public String getLanguageCode()
Optional. 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.ImageSearch setLanguageCode(String languageCode)
Optional. 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.
-
getOffset
public Integer getOffset()
Optional. 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.ImageSearch setOffset(Integer offset)
Optional. 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()
Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set.
-
setPageSize
public FactCheckTools.Claims.ImageSearch setPageSize(Integer pageSize)
Optional. The pagination size. We will return up to that many results. Defaults to 10 if
not set.
-
getPageToken
public String getPageToken()
Optional. 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.ImageSearch setPageToken(String pageToken)
Optional. 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.
-
set
public FactCheckTools.Claims.ImageSearch set(String parameterName,
Object value)
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy