Class AttackPath.Builder (2.62.0)

See more code actions.
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

AttackPathOrBuilder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathEdge>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathNode>
Returns
Type Description
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
Name Description
value AttackPath.AttackPathEdge
Returns
Type Description
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
Name Description
builderForValue AttackPath.AttackPathEdge.Builder
Returns
Type Description
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
Name Description
index int
value AttackPath.AttackPathEdge
Returns
Type Description
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
Name Description
index int
builderForValue AttackPath.AttackPathEdge.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value AttackPath.AttackPathNode
Returns
Type Description
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
Name Description
builderForValue AttackPath.AttackPathNode.Builder
Returns
Type Description
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
Name Description
index int
value AttackPath.AttackPathNode
Returns
Type Description
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
Name Description
index int
builderForValue AttackPath.AttackPathNode.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
AttackPath.AttackPathNode.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttackPath.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttackPath.Builder
Overrides

build()

public AttackPath build()
Returns
Type Description
AttackPath

buildPartial()

public AttackPath buildPartial()
Returns
Type Description
AttackPath

clear()

public AttackPath.Builder clear()
Returns
Type Description
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
Type Description
AttackPath.Builder

clearField(Descriptors.FieldDescriptor field)

public AttackPath.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
AttackPath.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AttackPath.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
AttackPath.Builder

clone()

public AttackPath.Builder clone()
Returns
Type Description
AttackPath.Builder
Overrides

getDefaultInstanceForType()

public AttackPath getDefaultInstanceForType()
Returns
Type Description
AttackPath

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.securitycenter.v2.AttackPath.AttackPathNodeOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttackPath other)

public AttackPath.Builder mergeFrom(AttackPath other)
Parameter
Name Description
other AttackPath
Returns
Type Description
AttackPath.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttackPath.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackPath.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AttackPath.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AttackPath.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttackPath.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value AttackPath.AttackPathEdge
Returns
Type Description
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
Name Description
index int
builderForValue AttackPath.AttackPathEdge.Builder
Returns
Type Description
AttackPath.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AttackPath.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
index int
value AttackPath.AttackPathNode
Returns
Type Description
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
Name Description
index int
builderForValue AttackPath.AttackPathNode.Builder
Returns
Type Description
AttackPath.Builder

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

public AttackPath.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AttackPath.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AttackPath.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttackPath.Builder
Overrides