Class ThreatInfo.Confidence (2.39.0)

public static final class ThreatInfo.Confidence extends GeneratedMessageV3 implements ThreatInfo.ConfidenceOrBuilder

Confidence that a URI is unsafe.

Protobuf type google.cloud.webrisk.v1.ThreatInfo.Confidence

Static Fields

LEVEL_FIELD_NUMBER

public static final int LEVEL_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ThreatInfo.Confidence getDefaultInstance()
Returns
TypeDescription
ThreatInfo.Confidence

getDescriptor()

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

newBuilder()

public static ThreatInfo.Confidence.Builder newBuilder()
Returns
TypeDescription
ThreatInfo.Confidence.Builder

newBuilder(ThreatInfo.Confidence prototype)

public static ThreatInfo.Confidence.Builder newBuilder(ThreatInfo.Confidence prototype)
Parameter
NameDescription
prototypeThreatInfo.Confidence
Returns
TypeDescription
ThreatInfo.Confidence.Builder

parseDelimitedFrom(InputStream input)

public static ThreatInfo.Confidence parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ThreatInfo.Confidence
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ThreatInfo.Confidence parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ThreatInfo.Confidence
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ThreatInfo.Confidence parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ThreatInfo.Confidence
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ThreatInfo.Confidence parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ThreatInfo.Confidence
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ThreatInfo.Confidence parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ThreatInfo.Confidence
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ThreatInfo.Confidence> parser()
Returns
TypeDescription
Parser<Confidence>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ThreatInfo.Confidence getDefaultInstanceForType()
Returns
TypeDescription
ThreatInfo.Confidence

getLevel()

public ThreatInfo.Confidence.ConfidenceLevel getLevel()

Enum representation of confidence.

.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;

Returns
TypeDescription
ThreatInfo.Confidence.ConfidenceLevel

The level.

getLevelValue()

public int getLevelValue()

Enum representation of confidence.

.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for level.

getParserForType()

public Parser<ThreatInfo.Confidence> getParserForType()
Returns
TypeDescription
Parser<Confidence>
Overrides

getScore()

public float getScore()

A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

float score = 1;

Returns
TypeDescription
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValueCase()

public ThreatInfo.Confidence.ValueCase getValueCase()
Returns
TypeDescription
ThreatInfo.Confidence.ValueCase

hasLevel()

public boolean hasLevel()

Enum representation of confidence.

.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;

Returns
TypeDescription
boolean

Whether the level field is set.

hasScore()

public boolean hasScore()

A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

float score = 1;

Returns
TypeDescription
boolean

Whether the score 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 ThreatInfo.Confidence.Builder newBuilderForType()
Returns
TypeDescription
ThreatInfo.Confidence.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ThreatInfo.Confidence.Builder toBuilder()
Returns
TypeDescription
ThreatInfo.Confidence.Builder

writeTo(CodedOutputStream output)

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