Class SearchUrisResponse.ThreatUri (2.18.0)

public static final class SearchUrisResponse.ThreatUri extends GeneratedMessageV3 implements SearchUrisResponse.ThreatUriOrBuilder

Contains threat information on a matching uri.

Protobuf type google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri

Static Fields

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

THREAT_TYPES_FIELD_NUMBER

public static final int THREAT_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SearchUrisResponse.ThreatUri getDefaultInstance()
Returns
TypeDescription
SearchUrisResponse.ThreatUri

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SearchUrisResponse.ThreatUri.Builder newBuilder()
Returns
TypeDescription
SearchUrisResponse.ThreatUri.Builder

newBuilder(SearchUrisResponse.ThreatUri prototype)

public static SearchUrisResponse.ThreatUri.Builder newBuilder(SearchUrisResponse.ThreatUri prototype)
Parameter
NameDescription
prototypeSearchUrisResponse.ThreatUri
Returns
TypeDescription
SearchUrisResponse.ThreatUri.Builder

parseDelimitedFrom(InputStream input)

public static SearchUrisResponse.ThreatUri parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchUrisResponse.ThreatUri parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SearchUrisResponse.ThreatUri parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SearchUrisResponse.ThreatUri parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SearchUrisResponse.ThreatUri parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SearchUrisResponse.ThreatUri parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SearchUrisResponse.ThreatUri parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchUrisResponse.ThreatUri parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SearchUrisResponse.ThreatUri parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchUrisResponse.ThreatUri parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SearchUrisResponse.ThreatUri parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SearchUrisResponse.ThreatUri parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchUrisResponse.ThreatUri
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SearchUrisResponse.ThreatUri> parser()
Returns
TypeDescription
Parser<ThreatUri>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SearchUrisResponse.ThreatUri getDefaultInstanceForType()
Returns
TypeDescription
SearchUrisResponse.ThreatUri

getExpireTime()

public Timestamp getExpireTime()

The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<SearchUrisResponse.ThreatUri> getParserForType()
Returns
TypeDescription
Parser<ThreatUri>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getThreatTypes(int index)

public ThreatType getThreatTypes(int index)

The ThreatList this threat belongs to.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ThreatType

The threatTypes at the given index.

getThreatTypesCount()

public int getThreatTypesCount()

The ThreatList this threat belongs to.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;

Returns
TypeDescription
int

The count of threatTypes.

getThreatTypesList()

public List<ThreatType> getThreatTypesList()

The ThreatList this threat belongs to.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;

Returns
TypeDescription
List<ThreatType>

A list containing the threatTypes.

getThreatTypesValue(int index)

public int getThreatTypesValue(int index)

The ThreatList this threat belongs to.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;

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 List<Integer> getThreatTypesValueList()

The ThreatList this threat belongs to.

repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;

Returns
TypeDescription
List<Integer>

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

hasExpireTime()

public boolean hasExpireTime()

The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
boolean

Whether the expireTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SearchUrisResponse.ThreatUri.Builder newBuilderForType()
Returns
TypeDescription
SearchUrisResponse.ThreatUri.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SearchUrisResponse.ThreatUri.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SearchUrisResponse.ThreatUri.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SearchUrisResponse.ThreatUri.Builder toBuilder()
Returns
TypeDescription
SearchUrisResponse.ThreatUri.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException