Class ThreatDiscovery (2.17.0)

public final class ThreatDiscovery extends GeneratedMessageV3 implements ThreatDiscoveryOrBuilder

Details about how the threat was discovered.

Protobuf type google.cloud.webrisk.v1.ThreatDiscovery

Static Fields

PLATFORM_FIELD_NUMBER

public static final int PLATFORM_FIELD_NUMBER
Field Value
TypeDescription
int

REGION_CODES_FIELD_NUMBER

public static final int REGION_CODES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ThreatDiscovery getDefaultInstance()
Returns
TypeDescription
ThreatDiscovery

getDescriptor()

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

newBuilder()

public static ThreatDiscovery.Builder newBuilder()
Returns
TypeDescription
ThreatDiscovery.Builder

newBuilder(ThreatDiscovery prototype)

public static ThreatDiscovery.Builder newBuilder(ThreatDiscovery prototype)
Parameter
NameDescription
prototypeThreatDiscovery
Returns
TypeDescription
ThreatDiscovery.Builder

parseDelimitedFrom(InputStream input)

public static ThreatDiscovery parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ThreatDiscovery
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ThreatDiscovery parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ThreatDiscovery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ThreatDiscovery parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ThreatDiscovery
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ThreatDiscovery parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ThreatDiscovery
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ThreatDiscovery parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ThreatDiscovery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ThreatDiscovery> parser()
Returns
TypeDescription
Parser<ThreatDiscovery>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ThreatDiscovery getDefaultInstanceForType()
Returns
TypeDescription
ThreatDiscovery

getParserForType()

public Parser<ThreatDiscovery> getParserForType()
Returns
TypeDescription
Parser<ThreatDiscovery>
Overrides

getPlatform()

public ThreatDiscovery.Platform getPlatform()

Platform on which the threat was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;

Returns
TypeDescription
ThreatDiscovery.Platform

The platform.

getPlatformValue()

public int getPlatformValue()

Platform on which the threat was discovered.

.google.cloud.webrisk.v1.ThreatDiscovery.Platform platform = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for platform.

getRegionCodes(int index)

public String getRegionCodes(int index)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The regionCodes at the given index.

getRegionCodesBytes(int index)

public ByteString getRegionCodesBytes(int index)

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the regionCodes at the given index.

getRegionCodesCount()

public int getRegionCodesCount()

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Returns
TypeDescription
int

The count of regionCodes.

getRegionCodesList()

public ProtocolStringList getRegionCodesList()

CLDR region code of the countries/regions the URI poses a threat ordered from most impact to least impact. Example: "US" for United States.

repeated string region_codes = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the regionCodes.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 ThreatDiscovery.Builder newBuilderForType()
Returns
TypeDescription
ThreatDiscovery.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ThreatDiscovery.Builder toBuilder()
Returns
TypeDescription
ThreatDiscovery.Builder

writeTo(CodedOutputStream output)

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