Class HashesResource.SearchRequest
Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is looked up in a threatList and there is a match. The client side threatList only holds partial hashes so the client must query this method to determine if there is a full hash match of a threat.
Inheritance
Inherited Members
Namespace: Google.Apis.WebRisk.v1
Assembly: Google.Apis.WebRisk.v1.dll
Syntax
public class HashesResource.SearchRequest : WebRiskBaseServiceRequest<GoogleCloudWebriskV1SearchHashesResponse>, IClientServiceRequest<GoogleCloudWebriskV1SearchHashesResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
HashPrefix
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded. Note that if this parameter is provided by a URI, it must be encoded using the web safe base64 variant (RFC 4648).
Declaration
[RequestParameter("hashPrefix", RequestParameterType.Query)]
public virtual string HashPrefix { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
Declaration
[RequestParameter("threatTypes", RequestParameterType.Query)]
public virtual HashesResource.SearchRequest.ThreatTypesEnum? ThreatTypes { get; set; }
Property Value
Type | Description |
---|---|
HashesResource.SearchRequest.ThreatTypesEnum? |
Remarks
Use this property to set a single value for the parameter, or ThreatTypesList to set multiple values. Do not set both properties.
ThreatTypesList
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
Declaration
[RequestParameter("threatTypes", RequestParameterType.Query)]
public virtual Repeatable<HashesResource.SearchRequest.ThreatTypesEnum> ThreatTypesList { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<HashesResource.SearchRequest.ThreatTypesEnum> |
Remarks
Use this property to set one or more values for the parameter. Do not set both this property and ThreatTypes.
Methods
InitParameters()
Initializes Search parameter list.
Declaration
protected override void InitParameters()