Class Indicator.Builder (2.3.2)

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

Methods

addAllDomains(Iterable<String> values)

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

List of domains associated to the Finding.

repeated string domains = 2;

Parameter
NameDescription
valuesIterable<String>

The domains to add.

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

The ipAddresses to add.

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

The domains to add.

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

The bytes of the domains to add.

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

The ipAddresses to add.

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

The bytes of the ipAddresses to add.

Returns
TypeDescription
Indicator.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Indicator build()
Returns
TypeDescription
Indicator

buildPartial()

public Indicator buildPartial()
Returns
TypeDescription
Indicator

clear()

public Indicator.Builder clear()
Returns
TypeDescription
Indicator.Builder
Overrides

clearDomains()

public Indicator.Builder clearDomains()

List of domains associated to the Finding.

repeated string domains = 2;

Returns
TypeDescription
Indicator.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Indicator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Indicator.Builder
Overrides

clearIpAddresses()

public Indicator.Builder clearIpAddresses()

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Returns
TypeDescription
Indicator.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Indicator.Builder clone()
Returns
TypeDescription
Indicator.Builder
Overrides

getDefaultInstanceForType()

public Indicator getDefaultInstanceForType()
Returns
TypeDescription
Indicator

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDomains(int index)

public String getDomains(int index)

List of domains associated to the Finding.

repeated string domains = 2;

Parameter
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of domains.

getDomainsList()

public ProtocolStringList getDomainsList()

List of domains associated to the Finding.

repeated string domains = 2;

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of ipAddresses.

getIpAddressesList()

public ProtocolStringList getIpAddressesList()

List of ip addresses associated to the Finding.

repeated string ip_addresses = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the ipAddresses.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Indicator other)

public Indicator.Builder mergeFrom(Indicator other)
Parameter
NameDescription
otherIndicator
Returns
TypeDescription
Indicator.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Indicator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Indicator.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The domains to set.

Returns
TypeDescription
Indicator.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The ipAddresses to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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