Class ThreatInfo.Confidence.Builder (2.22.0)

public static final class ThreatInfo.Confidence.Builder extends GeneratedMessageV3.Builder<ThreatInfo.Confidence.Builder> implements ThreatInfo.ConfidenceOrBuilder

Confidence that a URI is unsafe.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ThreatInfo.Confidence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ThreatInfo.Confidence.Builder clear()
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ThreatInfo.Confidence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

clearLevel()

public ThreatInfo.Confidence.Builder clearLevel()

Enum representation of confidence.

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

Returns
TypeDescription
ThreatInfo.Confidence.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ThreatInfo.Confidence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

clearScore()

public ThreatInfo.Confidence.Builder clearScore()

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
ThreatInfo.Confidence.Builder

This builder for chaining.

clearValue()

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

clone()

public ThreatInfo.Confidence.Builder clone()
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ThreatInfo.Confidence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ThreatInfo.Confidence.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

mergeFrom(ThreatInfo.Confidence other)

public ThreatInfo.Confidence.Builder mergeFrom(ThreatInfo.Confidence other)
Parameter
NameDescription
otherThreatInfo.Confidence
Returns
TypeDescription
ThreatInfo.Confidence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ThreatInfo.Confidence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ThreatInfo.Confidence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

setLevel(ThreatInfo.Confidence.ConfidenceLevel value)

public ThreatInfo.Confidence.Builder setLevel(ThreatInfo.Confidence.ConfidenceLevel value)

Enum representation of confidence.

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

Parameter
NameDescription
valueThreatInfo.Confidence.ConfidenceLevel

The level to set.

Returns
TypeDescription
ThreatInfo.Confidence.Builder

This builder for chaining.

setLevelValue(int value)

public ThreatInfo.Confidence.Builder setLevelValue(int value)

Enum representation of confidence.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for level to set.

Returns
TypeDescription
ThreatInfo.Confidence.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ThreatInfo.Confidence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides

setScore(float value)

public ThreatInfo.Confidence.Builder setScore(float value)

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;

Parameter
NameDescription
valuefloat

The score to set.

Returns
TypeDescription
ThreatInfo.Confidence.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ThreatInfo.Confidence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ThreatInfo.Confidence.Builder
Overrides