- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.6
- 2.0.12
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ThreatInfo.ThreatJustification.BuilderImplements
ThreatInfo.ThreatJustificationOrBuilderStatic 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 |
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 |
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 |
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 |
clone()
public ThreatInfo.ThreatJustification.Builder clone()
Returns | |
---|---|
Type | Description |
ThreatInfo.ThreatJustification.Builder |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
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 |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final ThreatInfo.ThreatJustification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ThreatInfo.ThreatJustification.Builder |