public static final class SecurityResult.ThreatCollectionItem.Builder extends GeneratedMessage.Builder<SecurityResult.ThreatCollectionItem.Builder> implements SecurityResult.ThreatCollectionItemOrBuilderThreat Collection that is either a threat campaign or a threat report.
Protobuf type google.backstory.SecurityResult.ThreatCollectionItem
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SecurityResult.ThreatCollectionItem.BuilderImplements
SecurityResult.ThreatCollectionItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllAltNames(Iterable<String> values)
public SecurityResult.ThreatCollectionItem.Builder addAllAltNames(Iterable<String> values)The name of the threat collection.
repeated string alt_names = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The altNames to add. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
addAltNames(String value)
public SecurityResult.ThreatCollectionItem.Builder addAltNames(String value)The name of the threat collection.
repeated string alt_names = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe altNames to add. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
addAltNamesBytes(ByteString value)
public SecurityResult.ThreatCollectionItem.Builder addAltNamesBytes(ByteString value)The name of the threat collection.
repeated string alt_names = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the altNames to add. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
build()
public SecurityResult.ThreatCollectionItem build()| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem |
|
buildPartial()
public SecurityResult.ThreatCollectionItem buildPartial()| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem |
|
clear()
public SecurityResult.ThreatCollectionItem.Builder clear()| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
|
clearAltNames()
public SecurityResult.ThreatCollectionItem.Builder clearAltNames()The name of the threat collection.
repeated string alt_names = 3;
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
clearId()
public SecurityResult.ThreatCollectionItem.Builder clearId()The ID of the threat collection.
string id = 1;
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
clearType()
public SecurityResult.ThreatCollectionItem.Builder clearType()The type of threat collection (e.g., "campaign").
.google.backstory.SecurityResult.ThreatCollectionType type = 2;
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
getAltNames(int index)
public String getAltNames(int index)The name of the threat collection.
repeated string alt_names = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The altNames at the given index. |
getAltNamesBytes(int index)
public ByteString getAltNamesBytes(int index)The name of the threat collection.
repeated string alt_names = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the altNames at the given index. |
getAltNamesCount()
public int getAltNamesCount()The name of the threat collection.
repeated string alt_names = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of altNames. |
getAltNamesList()
public ProtocolStringList getAltNamesList()The name of the threat collection.
repeated string alt_names = 3;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the altNames. |
getDefaultInstanceForType()
public SecurityResult.ThreatCollectionItem getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getId()
public String getId()The ID of the threat collection.
string id = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()The ID of the threat collection.
string id = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
getType()
public SecurityResult.ThreatCollectionType getType()The type of threat collection (e.g., "campaign").
.google.backstory.SecurityResult.ThreatCollectionType type = 2;
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionType |
The type. |
getTypeValue()
public int getTypeValue()The type of threat collection (e.g., "campaign").
.google.backstory.SecurityResult.ThreatCollectionType type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SecurityResult.ThreatCollectionItem other)
public SecurityResult.ThreatCollectionItem.Builder mergeFrom(SecurityResult.ThreatCollectionItem other)| Parameter | |
|---|---|
| Name | Description |
other |
SecurityResult.ThreatCollectionItem |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SecurityResult.ThreatCollectionItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SecurityResult.ThreatCollectionItem.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
|
setAltNames(int index, String value)
public SecurityResult.ThreatCollectionItem.Builder setAltNames(int index, String value)The name of the threat collection.
repeated string alt_names = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe altNames to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
setId(String value)
public SecurityResult.ThreatCollectionItem.Builder setId(String value)The ID of the threat collection.
string id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public SecurityResult.ThreatCollectionItem.Builder setIdBytes(ByteString value)The ID of the threat collection.
string id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
setType(SecurityResult.ThreatCollectionType value)
public SecurityResult.ThreatCollectionItem.Builder setType(SecurityResult.ThreatCollectionType value)The type of threat collection (e.g., "campaign").
.google.backstory.SecurityResult.ThreatCollectionType type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
SecurityResult.ThreatCollectionTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |
setTypeValue(int value)
public SecurityResult.ThreatCollectionItem.Builder setTypeValue(int value)The type of threat collection (e.g., "campaign").
.google.backstory.SecurityResult.ThreatCollectionType type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityResult.ThreatCollectionItem.Builder |
This builder for chaining. |