Class ThreatInfo.ThreatJustification.Builder (2.43.0)

public static final class ThreatInfo.ThreatJustification.Builder extends GeneratedMessageV3.Builder<ThreatInfo.ThreatJustification.Builder> implements ThreatInfo.ThreatJustificationOrBuilder

Context about why the URI is unsafe.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllComments(Iterable<String> values)

public ThreatInfo.ThreatJustification.Builder addAllComments(Iterable<String> values)

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Parameter
Name Description
values Iterable<String>

The comments to add.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addAllLabels(Iterable<? extends ThreatInfo.ThreatJustification.JustificationLabel> values)

public ThreatInfo.ThreatJustification.Builder addAllLabels(Iterable<? extends ThreatInfo.ThreatJustification.JustificationLabel> values)

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

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

Parameter
Name Description
values Iterable<? extends com.google.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel>

The labels to add.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addAllLabelsValue(Iterable<Integer> values)

public ThreatInfo.ThreatJustification.Builder addAllLabelsValue(Iterable<Integer> values)

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

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

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for labels to add.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addComments(String value)

public ThreatInfo.ThreatJustification.Builder addComments(String value)

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Parameter
Name Description
value String

The comments to add.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addCommentsBytes(ByteString value)

public ThreatInfo.ThreatJustification.Builder addCommentsBytes(ByteString value)

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Parameter
Name Description
value ByteString

The bytes of the comments to add.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addLabels(ThreatInfo.ThreatJustification.JustificationLabel value)

public ThreatInfo.ThreatJustification.Builder addLabels(ThreatInfo.ThreatJustification.JustificationLabel value)

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

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

Parameter
Name Description
value ThreatInfo.ThreatJustification.JustificationLabel

The labels to add.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addLabelsValue(int value)

public ThreatInfo.ThreatJustification.Builder addLabelsValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for labels to add.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ThreatInfo.ThreatJustification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

build()

public ThreatInfo.ThreatJustification build()
Returns
Type Description
ThreatInfo.ThreatJustification

buildPartial()

public ThreatInfo.ThreatJustification buildPartial()
Returns
Type Description
ThreatInfo.ThreatJustification

clear()

public ThreatInfo.ThreatJustification.Builder clear()
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

clearComments()

public ThreatInfo.ThreatJustification.Builder clearComments()

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ThreatInfo.ThreatJustification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

clearLabels()

public ThreatInfo.ThreatJustification.Builder clearLabels()

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

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

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ThreatInfo.ThreatJustification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

clone()

public ThreatInfo.ThreatJustification.Builder clone()
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

getComments(int index)

public String getComments(int index)

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of comments.

getCommentsList()

public ProtocolStringList getCommentsList()

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Returns
Type Description
ProtocolStringList

A list containing the comments.

getDefaultInstanceForType()

public ThreatInfo.ThreatJustification getDefaultInstanceForType()
Returns
Type Description
ThreatInfo.ThreatJustification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
List<Integer>

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ThreatInfo.ThreatJustification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ThreatInfo.ThreatJustification.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

mergeFrom(ThreatInfo.ThreatJustification other)

public ThreatInfo.ThreatJustification.Builder mergeFrom(ThreatInfo.ThreatJustification other)
Parameter
Name Description
other ThreatInfo.ThreatJustification
Returns
Type Description
ThreatInfo.ThreatJustification.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ThreatInfo.ThreatJustification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

setComments(int index, String value)

public ThreatInfo.ThreatJustification.Builder setComments(int index, String value)

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The comments to set.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ThreatInfo.ThreatJustification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

setLabels(int index, ThreatInfo.ThreatJustification.JustificationLabel value)

public ThreatInfo.ThreatJustification.Builder setLabels(int index, ThreatInfo.ThreatJustification.JustificationLabel value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value ThreatInfo.ThreatJustification.JustificationLabel

The labels to set.

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

setLabelsValue(int index, int value)

public ThreatInfo.ThreatJustification.Builder setLabelsValue(int index, int value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

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

public ThreatInfo.ThreatJustification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ThreatInfo.ThreatJustification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ThreatInfo.ThreatJustification.Builder
Overrides