Class Indicator.Builder (2.6.0)

public static final class Indicator.Builder extends GeneratedMessageV3.Builder<Indicator.Builder> implements IndicatorOrBuilder

Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise

Protobuf type google.cloud.securitycenter.v1.Indicator

Implements

IndicatorOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDomains(Iterable<String> values)

public Indicator.Builder addAllDomains(Iterable<String> values)

List of domains associated to the Finding.

repeated string domains = 2;

Parameter
Name Description
values Iterable<String>

The domains to add.

Returns
Type Description
Indicator.Builder

This builder for chaining.

addAllIpAddresses(Iterable<String> values)

public Indicator.Builder addAllIpAddresses(Iterable<String> values)

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Parameter
Name Description
values Iterable<String>

The ipAddresses to add.

Returns
Type Description
Indicator.Builder

This builder for chaining.

addDomains(String value)

public Indicator.Builder addDomains(String value)

List of domains associated to the Finding.

repeated string domains = 2;

Parameter
Name Description
value String

The domains to add.

Returns
Type Description
Indicator.Builder

This builder for chaining.

addDomainsBytes(ByteString value)

public Indicator.Builder addDomainsBytes(ByteString value)

List of domains associated to the Finding.

repeated string domains = 2;

Parameter
Name Description
value ByteString

The bytes of the domains to add.

Returns
Type Description
Indicator.Builder

This builder for chaining.

addIpAddresses(String value)

public Indicator.Builder addIpAddresses(String value)

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Parameter
Name Description
value String

The ipAddresses to add.

Returns
Type Description
Indicator.Builder

This builder for chaining.

addIpAddressesBytes(ByteString value)

public Indicator.Builder addIpAddressesBytes(ByteString value)

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Parameter
Name Description
value ByteString

The bytes of the ipAddresses to add.

Returns
Type Description
Indicator.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Indicator build()
Returns
Type Description
Indicator

buildPartial()

public Indicator buildPartial()
Returns
Type Description
Indicator

clear()

public Indicator.Builder clear()
Returns
Type Description
Indicator.Builder
Overrides

clearDomains()

public Indicator.Builder clearDomains()

List of domains associated to the Finding.

repeated string domains = 2;

Returns
Type Description
Indicator.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpAddresses()

public Indicator.Builder clearIpAddresses()

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Returns
Type Description
Indicator.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Indicator.Builder clone()
Returns
Type Description
Indicator.Builder
Overrides

getDefaultInstanceForType()

public Indicator getDefaultInstanceForType()
Returns
Type Description
Indicator

getDescriptorForType()

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

getDomains(int index)

public String getDomains(int index)

List of domains associated to the Finding.

repeated string domains = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The domains at the given index.

getDomainsBytes(int index)

public ByteString getDomainsBytes(int index)

List of domains associated to the Finding.

repeated string domains = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the domains at the given index.

getDomainsCount()

public int getDomainsCount()

List of domains associated to the Finding.

repeated string domains = 2;

Returns
Type Description
int

The count of domains.

getDomainsList()

public ProtocolStringList getDomainsList()

List of domains associated to the Finding.

repeated string domains = 2;

Returns
Type Description
ProtocolStringList

A list containing the domains.

getIpAddresses(int index)

public String getIpAddresses(int index)

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipAddresses at the given index.

getIpAddressesBytes(int index)

public ByteString getIpAddressesBytes(int index)

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipAddresses at the given index.

getIpAddressesCount()

public int getIpAddressesCount()

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Returns
Type Description
int

The count of ipAddresses.

getIpAddressesList()

public ProtocolStringList getIpAddressesList()

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Returns
Type Description
ProtocolStringList

A list containing the ipAddresses.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Indicator other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDomains(int index, String value)

public Indicator.Builder setDomains(int index, String value)

List of domains associated to the Finding.

repeated string domains = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The domains to set.

Returns
Type Description
Indicator.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpAddresses(int index, String value)

public Indicator.Builder setIpAddresses(int index, String value)

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The ipAddresses to set.

Returns
Type Description
Indicator.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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