Class ClaimsResource.ImageSearchRequest
Search through fact-checked claims using an image as the query.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.FactCheckTools.v1alpha1
Assembly: Google.Apis.FactCheckTools.v1alpha1.dll
Syntax
public class ClaimsResource.ImageSearchRequest : FactCheckToolsBaseServiceRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse>, IClientServiceRequest<GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse>, IClientServiceRequest
Constructors
ImageSearchRequest(IClientService)
Constructs a new ImageSearch request.
Declaration
public ImageSearchRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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.
Declaration
[RequestParameter("imageUri", RequestParameterType.Query)]
public virtual string ImageUri { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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.
Declaration
[RequestParameter("offset", RequestParameterType.Query)]
public virtual int? Offset { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageSize
Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
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.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes ImageSearch parameter list.
Declaration
protected override void InitParameters()