Class AttackPath.Builder (2.48.0)

public static final class AttackPath.Builder extends GeneratedMessageV3.Builder<AttackPath.Builder> implements AttackPathOrBuilder

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

Protobuf type google.cloud.securitycenter.v2.AttackPath

Implements

AttackPathOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllEdges(Iterable<? extends AttackPath.AttackPathEdge> values)

public AttackPath.Builder addAllEdges(Iterable<? extends AttackPath.AttackPathEdge> values)

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge>
Returns
TypeDescription
AttackPath.Builder

addAllPathNodes(Iterable<? extends AttackPath.AttackPathNode> values)

public AttackPath.Builder addAllPathNodes(Iterable<? extends AttackPath.AttackPathNode> values)

A list of nodes that exist in this attack path.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode>
Returns
TypeDescription
AttackPath.Builder

addEdges(AttackPath.AttackPathEdge value)

public AttackPath.Builder addEdges(AttackPath.AttackPathEdge value)

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

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

Parameter
NameDescription
valueAttackPath.AttackPathEdge
Returns
TypeDescription
AttackPath.Builder

addEdges(AttackPath.AttackPathEdge.Builder builderForValue)

public AttackPath.Builder addEdges(AttackPath.AttackPathEdge.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAttackPath.AttackPathEdge.Builder
Returns
TypeDescription
AttackPath.Builder

addEdges(int index, AttackPath.AttackPathEdge value)

public AttackPath.Builder addEdges(int index, AttackPath.AttackPathEdge value)

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

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

Parameters
NameDescription
indexint
valueAttackPath.AttackPathEdge
Returns
TypeDescription
AttackPath.Builder

addEdges(int index, AttackPath.AttackPathEdge.Builder builderForValue)

public AttackPath.Builder addEdges(int index, AttackPath.AttackPathEdge.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValueAttackPath.AttackPathEdge.Builder
Returns
TypeDescription
AttackPath.Builder

addEdgesBuilder()

public AttackPath.AttackPathEdge.Builder addEdgesBuilder()

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

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

Returns
TypeDescription
AttackPath.AttackPathEdge.Builder

addEdgesBuilder(int index)

public AttackPath.AttackPathEdge.Builder addEdgesBuilder(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.Builder

addPathNodes(AttackPath.AttackPathNode value)

public AttackPath.Builder addPathNodes(AttackPath.AttackPathNode value)

A list of nodes that exist in this attack path.

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

Parameter
NameDescription
valueAttackPath.AttackPathNode
Returns
TypeDescription
AttackPath.Builder

addPathNodes(AttackPath.AttackPathNode.Builder builderForValue)

public AttackPath.Builder addPathNodes(AttackPath.AttackPathNode.Builder builderForValue)

A list of nodes that exist in this attack path.

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

Parameter
NameDescription
builderForValueAttackPath.AttackPathNode.Builder
Returns
TypeDescription
AttackPath.Builder

addPathNodes(int index, AttackPath.AttackPathNode value)

public AttackPath.Builder addPathNodes(int index, AttackPath.AttackPathNode value)

A list of nodes that exist in this attack path.

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

Parameters
NameDescription
indexint
valueAttackPath.AttackPathNode
Returns
TypeDescription
AttackPath.Builder

addPathNodes(int index, AttackPath.AttackPathNode.Builder builderForValue)

public AttackPath.Builder addPathNodes(int index, AttackPath.AttackPathNode.Builder builderForValue)

A list of nodes that exist in this attack path.

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

Parameters
NameDescription
indexint
builderForValueAttackPath.AttackPathNode.Builder
Returns
TypeDescription
AttackPath.Builder

addPathNodesBuilder()

public AttackPath.AttackPathNode.Builder addPathNodesBuilder()

A list of nodes that exist in this attack path.

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

Returns
TypeDescription
AttackPath.AttackPathNode.Builder

addPathNodesBuilder(int index)

public AttackPath.AttackPathNode.Builder addPathNodesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttackPath build()
Returns
TypeDescription
AttackPath

buildPartial()

public AttackPath buildPartial()
Returns
TypeDescription
AttackPath

clear()

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

clearEdges()

public AttackPath.Builder clearEdges()

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

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

Returns
TypeDescription
AttackPath.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AttackPath.Builder clearName()

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

string name = 1;

Returns
TypeDescription
AttackPath.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPathNodes()

public AttackPath.Builder clearPathNodes()

A list of nodes that exist in this attack path.

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

Returns
TypeDescription
AttackPath.Builder

clone()

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

getDefaultInstanceForType()

public AttackPath getDefaultInstanceForType()
Returns
TypeDescription
AttackPath

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getEdgesBuilder(int index)

public AttackPath.AttackPathEdge.Builder getEdgesBuilder(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.Builder

getEdgesBuilderList()

public List<AttackPath.AttackPathEdge.Builder> getEdgesBuilderList()

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

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

Returns
TypeDescription
List<Builder>

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.

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

getPathNodesBuilder(int index)

public AttackPath.AttackPathNode.Builder getPathNodesBuilder(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.Builder

getPathNodesBuilderList()

public List<AttackPath.AttackPathNode.Builder> getPathNodesBuilderList()

A list of nodes that exist in this attack path.

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

Returns
TypeDescription
List<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttackPath other)

public AttackPath.Builder mergeFrom(AttackPath other)
Parameter
NameDescription
otherAttackPath
Returns
TypeDescription
AttackPath.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEdges(int index)

public AttackPath.Builder removeEdges(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.Builder

removePathNodes(int index)

public AttackPath.Builder removePathNodes(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.Builder

setEdges(int index, AttackPath.AttackPathEdge value)

public AttackPath.Builder setEdges(int index, AttackPath.AttackPathEdge value)

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

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

Parameters
NameDescription
indexint
valueAttackPath.AttackPathEdge
Returns
TypeDescription
AttackPath.Builder

setEdges(int index, AttackPath.AttackPathEdge.Builder builderForValue)

public AttackPath.Builder setEdges(int index, AttackPath.AttackPathEdge.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValueAttackPath.AttackPathEdge.Builder
Returns
TypeDescription
AttackPath.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AttackPath.Builder setName(String value)

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

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AttackPath.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AttackPath.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AttackPath.Builder

This builder for chaining.

setPathNodes(int index, AttackPath.AttackPathNode value)

public AttackPath.Builder setPathNodes(int index, AttackPath.AttackPathNode value)

A list of nodes that exist in this attack path.

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

Parameters
NameDescription
indexint
valueAttackPath.AttackPathNode
Returns
TypeDescription
AttackPath.Builder

setPathNodes(int index, AttackPath.AttackPathNode.Builder builderForValue)

public AttackPath.Builder setPathNodes(int index, AttackPath.AttackPathNode.Builder builderForValue)

A list of nodes that exist in this attack path.

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

Parameters
NameDescription
indexint
builderForValueAttackPath.AttackPathNode.Builder
Returns
TypeDescription
AttackPath.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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