Class MitreAttack.Builder (2.35.0)

public static final class MitreAttack.Builder extends GeneratedMessageV3.Builder<MitreAttack.Builder> implements MitreAttackOrBuilder

MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org

Protobuf type google.cloud.securitycenter.v1.MitreAttack

Static Methods

getDescriptor()

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

Methods

addAdditionalTactics(MitreAttack.Tactic value)

public MitreAttack.Builder addAdditionalTactics(MitreAttack.Tactic value)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameter
NameDescription
valueMitreAttack.Tactic

The additionalTactics to add.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAdditionalTacticsValue(int value)

public MitreAttack.Builder addAdditionalTacticsValue(int value)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAdditionalTechniques(MitreAttack.Technique value)

public MitreAttack.Builder addAdditionalTechniques(MitreAttack.Technique value)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameter
NameDescription
valueMitreAttack.Technique

The additionalTechniques to add.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAdditionalTechniquesValue(int value)

public MitreAttack.Builder addAdditionalTechniquesValue(int value)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAllAdditionalTactics(Iterable<? extends MitreAttack.Tactic> values)

public MitreAttack.Builder addAllAdditionalTactics(Iterable<? extends MitreAttack.Tactic> values)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.MitreAttack.Tactic>

The additionalTactics to add.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAllAdditionalTacticsValue(Iterable<Integer> values)

public MitreAttack.Builder addAllAdditionalTacticsValue(Iterable<Integer> values)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAllAdditionalTechniques(Iterable<? extends MitreAttack.Technique> values)

public MitreAttack.Builder addAllAdditionalTechniques(Iterable<? extends MitreAttack.Technique> values)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.MitreAttack.Technique>

The additionalTechniques to add.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAllAdditionalTechniquesValue(Iterable<Integer> values)

public MitreAttack.Builder addAllAdditionalTechniquesValue(Iterable<Integer> values)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAllPrimaryTechniques(Iterable<? extends MitreAttack.Technique> values)

public MitreAttack.Builder addAllPrimaryTechniques(Iterable<? extends MitreAttack.Technique> values)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.MitreAttack.Technique>

The primaryTechniques to add.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addAllPrimaryTechniquesValue(Iterable<Integer> values)

public MitreAttack.Builder addAllPrimaryTechniquesValue(Iterable<Integer> values)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addPrimaryTechniques(MitreAttack.Technique value)

public MitreAttack.Builder addPrimaryTechniques(MitreAttack.Technique value)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameter
NameDescription
valueMitreAttack.Technique

The primaryTechniques to add.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addPrimaryTechniquesValue(int value)

public MitreAttack.Builder addPrimaryTechniquesValue(int value)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MitreAttack build()
Returns
TypeDescription
MitreAttack

buildPartial()

public MitreAttack buildPartial()
Returns
TypeDescription
MitreAttack

clear()

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

clearAdditionalTactics()

public MitreAttack.Builder clearAdditionalTactics()

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

clearAdditionalTechniques()

public MitreAttack.Builder clearAdditionalTechniques()

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrimaryTactic()

public MitreAttack.Builder clearPrimaryTactic()

The MITRE ATT&CK tactic most closely represented by this finding, if any.

.google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1;

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

clearPrimaryTechniques()

public MitreAttack.Builder clearPrimaryTechniques()

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

clearVersion()

public MitreAttack.Builder clearVersion()

The MITRE ATT&CK version referenced by the above fields. E.g. "8".

string version = 5;

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

clone()

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

getAdditionalTactics(int index)

public MitreAttack.Tactic getAdditionalTactics(int index)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
MitreAttack.Tactic

The additionalTactics at the given index.

getAdditionalTacticsCount()

public int getAdditionalTacticsCount()

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Returns
TypeDescription
int

The count of additionalTactics.

getAdditionalTacticsList()

public List<MitreAttack.Tactic> getAdditionalTacticsList()

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Returns
TypeDescription
List<Tactic>

A list containing the additionalTactics.

getAdditionalTacticsValue(int index)

public int getAdditionalTacticsValue(int index)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of additionalTactics at the given index.

getAdditionalTacticsValueList()

public List<Integer> getAdditionalTacticsValueList()

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for additionalTactics.

getAdditionalTechniques(int index)

public MitreAttack.Technique getAdditionalTechniques(int index)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
MitreAttack.Technique

The additionalTechniques at the given index.

getAdditionalTechniquesCount()

public int getAdditionalTechniquesCount()

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Returns
TypeDescription
int

The count of additionalTechniques.

getAdditionalTechniquesList()

public List<MitreAttack.Technique> getAdditionalTechniquesList()

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Returns
TypeDescription
List<Technique>

A list containing the additionalTechniques.

getAdditionalTechniquesValue(int index)

public int getAdditionalTechniquesValue(int index)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of additionalTechniques at the given index.

getAdditionalTechniquesValueList()

public List<Integer> getAdditionalTechniquesValueList()

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for additionalTechniques.

getDefaultInstanceForType()

public MitreAttack getDefaultInstanceForType()
Returns
TypeDescription
MitreAttack

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrimaryTactic()

public MitreAttack.Tactic getPrimaryTactic()

The MITRE ATT&CK tactic most closely represented by this finding, if any.

.google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1;

Returns
TypeDescription
MitreAttack.Tactic

The primaryTactic.

getPrimaryTacticValue()

public int getPrimaryTacticValue()

The MITRE ATT&CK tactic most closely represented by this finding, if any.

.google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for primaryTactic.

getPrimaryTechniques(int index)

public MitreAttack.Technique getPrimaryTechniques(int index)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
MitreAttack.Technique

The primaryTechniques at the given index.

getPrimaryTechniquesCount()

public int getPrimaryTechniquesCount()

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Returns
TypeDescription
int

The count of primaryTechniques.

getPrimaryTechniquesList()

public List<MitreAttack.Technique> getPrimaryTechniquesList()

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Returns
TypeDescription
List<Technique>

A list containing the primaryTechniques.

getPrimaryTechniquesValue(int index)

public int getPrimaryTechniquesValue(int index)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of primaryTechniques at the given index.

getPrimaryTechniquesValueList()

public List<Integer> getPrimaryTechniquesValueList()

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for primaryTechniques.

getVersion()

public String getVersion()

The MITRE ATT&CK version referenced by the above fields. E.g. "8".

string version = 5;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The MITRE ATT&CK version referenced by the above fields. E.g. "8".

string version = 5;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MitreAttack other)

public MitreAttack.Builder mergeFrom(MitreAttack other)
Parameter
NameDescription
otherMitreAttack
Returns
TypeDescription
MitreAttack.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MitreAttack.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MitreAttack.Builder
Overrides

setAdditionalTactics(int index, MitreAttack.Tactic value)

public MitreAttack.Builder setAdditionalTactics(int index, MitreAttack.Tactic value)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueMitreAttack.Tactic

The additionalTactics to set.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setAdditionalTacticsValue(int index, int value)

public MitreAttack.Builder setAdditionalTacticsValue(int index, int value)

Additional MITRE ATT&CK tactics related to this finding, if any.

repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setAdditionalTechniques(int index, MitreAttack.Technique value)

public MitreAttack.Builder setAdditionalTechniques(int index, MitreAttack.Technique value)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueMitreAttack.Technique

The additionalTechniques to set.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setAdditionalTechniquesValue(int index, int value)

public MitreAttack.Builder setAdditionalTechniquesValue(int index, int value)

Additional MITRE ATT&CK techniques related to this finding, if any, along with any of their respective parent techniques.

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrimaryTactic(MitreAttack.Tactic value)

public MitreAttack.Builder setPrimaryTactic(MitreAttack.Tactic value)

The MITRE ATT&CK tactic most closely represented by this finding, if any.

.google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1;

Parameter
NameDescription
valueMitreAttack.Tactic

The primaryTactic to set.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setPrimaryTacticValue(int value)

public MitreAttack.Builder setPrimaryTacticValue(int value)

The MITRE ATT&CK tactic most closely represented by this finding, if any.

.google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setPrimaryTechniques(int index, MitreAttack.Technique value)

public MitreAttack.Builder setPrimaryTechniques(int index, MitreAttack.Technique value)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueMitreAttack.Technique

The primaryTechniques to set.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setPrimaryTechniquesValue(int index, int value)

public MitreAttack.Builder setPrimaryTechniquesValue(int index, int value)

The MITRE ATT&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).

repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

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

public MitreAttack.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MitreAttack.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public MitreAttack.Builder setVersion(String value)

The MITRE ATT&CK version referenced by the above fields. E.g. "8".

string version = 5;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public MitreAttack.Builder setVersionBytes(ByteString value)

The MITRE ATT&CK version referenced by the above fields. E.g. "8".

string version = 5;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
MitreAttack.Builder

This builder for chaining.