Class AttackPath (2.49.0)

public final class AttackPath extends GeneratedMessageV3 implements AttackPathOrBuilder

A path that an attacker could take to reach an exposed resource.

Protobuf type google.cloud.securitycenter.v2.AttackPath

Implements

AttackPathOrBuilder

Static Fields

EDGES_FIELD_NUMBER

public static final int EDGES_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_NODES_FIELD_NUMBER

public static final int PATH_NODES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AttackPath getDefaultInstance()
Returns
TypeDescription
AttackPath

getDescriptor()

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

newBuilder()

public static AttackPath.Builder newBuilder()
Returns
TypeDescription
AttackPath.Builder

newBuilder(AttackPath prototype)

public static AttackPath.Builder newBuilder(AttackPath prototype)
Parameter
NameDescription
prototypeAttackPath
Returns
TypeDescription
AttackPath.Builder

parseDelimitedFrom(InputStream input)

public static AttackPath parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackPath parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AttackPath parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AttackPath parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AttackPath parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AttackPath parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AttackPath parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackPath parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AttackPath parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackPath parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AttackPath parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AttackPath parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackPath
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AttackPath> parser()
Returns
TypeDescription
Parser<AttackPath>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AttackPath getDefaultInstanceForType()
Returns
TypeDescription
AttackPath

getEdges(int index)

public AttackPath.AttackPathEdge getEdges(int index)

A list of the edges between nodes in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AttackPath.AttackPathEdge

getEdgesCount()

public int getEdgesCount()

A list of the edges between nodes in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;

Returns
TypeDescription
int

getEdgesList()

public List<AttackPath.AttackPathEdge> getEdgesList()

A list of the edges between nodes in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;

Returns
TypeDescription
List<AttackPathEdge>

getEdgesOrBuilder(int index)

public AttackPath.AttackPathEdgeOrBuilder getEdgesOrBuilder(int index)

A list of the edges between nodes in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AttackPath.AttackPathEdgeOrBuilder

getEdgesOrBuilderList()

public List<? extends AttackPath.AttackPathEdgeOrBuilder> getEdgesOrBuilderList()

A list of the edges between nodes in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathEdge edges = 3;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdgeOrBuilder>

getName()

public String getName()

The attack path name, for example, organizations/12/simulations/34/valuedResources/56/attackPaths/78

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The attack path name, for example, organizations/12/simulations/34/valuedResources/56/attackPaths/78

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<AttackPath> getParserForType()
Returns
TypeDescription
Parser<AttackPath>
Overrides

getPathNodes(int index)

public AttackPath.AttackPathNode getPathNodes(int index)

A list of nodes that exist in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AttackPath.AttackPathNode

getPathNodesCount()

public int getPathNodesCount()

A list of nodes that exist in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;

Returns
TypeDescription
int

getPathNodesList()

public List<AttackPath.AttackPathNode> getPathNodesList()

A list of nodes that exist in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;

Returns
TypeDescription
List<AttackPathNode>

getPathNodesOrBuilder(int index)

public AttackPath.AttackPathNodeOrBuilder getPathNodesOrBuilder(int index)

A list of nodes that exist in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AttackPath.AttackPathNodeOrBuilder

getPathNodesOrBuilderList()

public List<? extends AttackPath.AttackPathNodeOrBuilder> getPathNodesOrBuilderList()

A list of nodes that exist in this attack path.

repeated .google.cloud.securitycenter.v2.AttackPath.AttackPathNode path_nodes = 2;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AttackPath.Builder newBuilderForType()
Returns
TypeDescription
AttackPath.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AttackPath.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AttackPath.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AttackPath.Builder toBuilder()
Returns
TypeDescription
AttackPath.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException