Interface SearchHashesRequestOrBuilder (2.14.0)

public interface SearchHashesRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHashPrefix()

public abstract ByteString getHashPrefix()

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).

bytes hash_prefix = 1;

Returns
TypeDescription
ByteString

The hashPrefix.

getThreatTypes(int index)

public abstract ThreatType getThreatTypes(int index)

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ThreatType

The threatTypes at the given index.

getThreatTypesCount()

public abstract int getThreatTypesCount()

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of threatTypes.

getThreatTypesList()

public abstract List<ThreatType> getThreatTypesList()

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<ThreatType>

A list containing the threatTypes.

getThreatTypesValue(int index)

public abstract int getThreatTypesValue(int index)

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of threatTypes at the given index.

getThreatTypesValueList()

public abstract List<Integer> getThreatTypesValueList()

Required. The ThreatLists to search in. Multiple ThreatLists may be specified.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for threatTypes.