Class ThreatInfo.ThreatJustification (2.22.0)

public static final class ThreatInfo.ThreatJustification extends GeneratedMessageV3 implements ThreatInfo.ThreatJustificationOrBuilder

Context about why the URI is unsafe.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ThreatInfo.ThreatJustification

Static Fields

COMMENTS_FIELD_NUMBER

public static final int COMMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ThreatInfo.ThreatJustification prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getComments(int index)

public String getComments(int index)

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The comments at the given index.

getCommentsBytes(int index)

public ByteString getCommentsBytes(int index)

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the comments at the given index.

getCommentsCount()

public int getCommentsCount()

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Returns
TypeDescription
int

The count of comments.

getCommentsList()

public ProtocolStringList getCommentsList()

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the comments.

getDefaultInstanceForType()

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

getLabels(int index)

public ThreatInfo.ThreatJustification.JustificationLabel getLabels(int index)

Labels associated with this URI that explain how it was classified.

repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ThreatInfo.ThreatJustification.JustificationLabel

The labels at the given index.

getLabelsCount()

public int getLabelsCount()

Labels associated with this URI that explain how it was classified.

repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;

Returns
TypeDescription
int

The count of labels.

getLabelsList()

public List<ThreatInfo.ThreatJustification.JustificationLabel> getLabelsList()

Labels associated with this URI that explain how it was classified.

repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;

Returns
TypeDescription
List<JustificationLabel>

A list containing the labels.

getLabelsValue(int index)

public int getLabelsValue(int index)

Labels associated with this URI that explain how it was classified.

repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

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

getLabelsValueList()

public List<Integer> getLabelsValueList()

Labels associated with this URI that explain how it was classified.

repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;

Returns
TypeDescription
List<Integer>

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 ThreatInfo.ThreatJustification.Builder newBuilderForType()
Returns
TypeDescription
ThreatInfo.ThreatJustification.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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