Class ThreatInfo.ThreatJustification.Builder (2.20.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
TypeDescription
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
NameDescription
valuesIterable<String>

The comments to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel>

The labels to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueString

The comments to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the comments to add.

Returns
TypeDescription
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
NameDescription
valueThreatInfo.ThreatJustification.JustificationLabel

The labels to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearComments()

public ThreatInfo.ThreatJustification.Builder clearComments()

Free-form context on why this URI is unsafe.

repeated string comments = 2;

Returns
TypeDescription
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ThreatInfo.ThreatJustification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.ThreatJustification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreatInfo.ThreatJustification.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(ThreatInfo.ThreatJustification other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ThreatInfo.ThreatJustification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The comments to set.

Returns
TypeDescription
ThreatInfo.ThreatJustification.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ThreatInfo.ThreatJustification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueThreatInfo.ThreatJustification.JustificationLabel

The labels to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ThreatInfo.ThreatJustification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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