Class MitreAttack

  • All Implemented Interfaces:
    MitreAttackOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class MitreAttack
    extends com.google.protobuf.GeneratedMessageV3
    implements MitreAttackOrBuilder
     MITRE ATT&CK tactics and techniques related to this finding.
     See: https://attack.mitre.org
     
    Protobuf type google.cloud.securitycenter.v1.MitreAttack
    See Also:
    Serialized Form
    • Field Detail

      • PRIMARY_TACTIC_FIELD_NUMBER

        public static final int PRIMARY_TACTIC_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRIMARY_TECHNIQUES_FIELD_NUMBER

        public static final int PRIMARY_TECHNIQUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADDITIONAL_TACTICS_FIELD_NUMBER

        public static final int ADDITIONAL_TACTICS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADDITIONAL_TECHNIQUES_FIELD_NUMBER

        public static final int ADDITIONAL_TECHNIQUES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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;
        Specified by:
        getPrimaryTacticValue in interface MitreAttackOrBuilder
        Returns:
        The enum numeric value on the wire for primaryTactic.
      • 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;
        Specified by:
        getPrimaryTactic in interface MitreAttackOrBuilder
        Returns:
        The primaryTactic.
      • 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;
        Specified by:
        getPrimaryTechniquesList in interface MitreAttackOrBuilder
        Returns:
        A list containing the primaryTechniques.
      • 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;
        Specified by:
        getPrimaryTechniquesCount in interface MitreAttackOrBuilder
        Returns:
        The count of primaryTechniques.
      • getPrimaryTechniques

        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;
        Specified by:
        getPrimaryTechniques in interface MitreAttackOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The 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;
        Specified by:
        getPrimaryTechniquesValueList in interface MitreAttackOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for primaryTechniques.
      • getPrimaryTechniquesValue

        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;
        Specified by:
        getPrimaryTechniquesValue in interface MitreAttackOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of primaryTechniques at the given index.
      • 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;
        Specified by:
        getAdditionalTacticsList in interface MitreAttackOrBuilder
        Returns:
        A list containing the additionalTactics.
      • 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;
        Specified by:
        getAdditionalTacticsCount in interface MitreAttackOrBuilder
        Returns:
        The count of additionalTactics.
      • getAdditionalTactics

        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;
        Specified by:
        getAdditionalTactics in interface MitreAttackOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The 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;
        Specified by:
        getAdditionalTacticsValueList in interface MitreAttackOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for additionalTactics.
      • getAdditionalTacticsValue

        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;
        Specified by:
        getAdditionalTacticsValue in interface MitreAttackOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of additionalTactics at the given index.
      • 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;
        Specified by:
        getAdditionalTechniquesList in interface MitreAttackOrBuilder
        Returns:
        A list containing the additionalTechniques.
      • 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;
        Specified by:
        getAdditionalTechniquesCount in interface MitreAttackOrBuilder
        Returns:
        The count of additionalTechniques.
      • getAdditionalTechniques

        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;
        Specified by:
        getAdditionalTechniques in interface MitreAttackOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The 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;
        Specified by:
        getAdditionalTechniquesValueList in interface MitreAttackOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for additionalTechniques.
      • getAdditionalTechniquesValue

        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;
        Specified by:
        getAdditionalTechniquesValue in interface MitreAttackOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of additionalTechniques at the given index.
      • getVersion

        public String getVersion()
         The MITRE ATT&CK version referenced by the above fields. E.g. "8".
         
        string version = 5;
        Specified by:
        getVersion in interface MitreAttackOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         The MITRE ATT&CK version referenced by the above fields. E.g. "8".
         
        string version = 5;
        Specified by:
        getVersionBytes in interface MitreAttackOrBuilder
        Returns:
        The bytes for version.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MitreAttack parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MitreAttack parseFrom​(ByteBuffer data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MitreAttack parseFrom​(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MitreAttack parseFrom​(com.google.protobuf.ByteString data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MitreAttack parseFrom​(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MitreAttack parseFrom​(byte[] data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MitreAttack parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

        public MitreAttack.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MitreAttack.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected MitreAttack.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static MitreAttack getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<MitreAttack> parser()
      • getParserForType

        public com.google.protobuf.Parser<MitreAttack> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MitreAttack getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder