Class Chokepoint.Builder (2.91.0)

public static final class Chokepoint.Builder extends GeneratedMessage.Builder<Chokepoint.Builder> implements ChokepointOrBuilder

Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on attack path simulations.

Protobuf type google.cloud.securitycenter.v2.Chokepoint

Implements

ChokepointOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRelatedFindings(Iterable<String> values)

public Chokepoint.Builder addAllRelatedFindings(Iterable<String> values)

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Parameter
Name Description
values Iterable<String>

The relatedFindings to add.

Returns
Type Description
Chokepoint.Builder

This builder for chaining.

addRelatedFindings(String value)

public Chokepoint.Builder addRelatedFindings(String value)

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Parameter
Name Description
value String

The relatedFindings to add.

Returns
Type Description
Chokepoint.Builder

This builder for chaining.

addRelatedFindingsBytes(ByteString value)

public Chokepoint.Builder addRelatedFindingsBytes(ByteString value)

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Parameter
Name Description
value ByteString

The bytes of the relatedFindings to add.

Returns
Type Description
Chokepoint.Builder

This builder for chaining.

build()

public Chokepoint build()
Returns
Type Description
Chokepoint

buildPartial()

public Chokepoint buildPartial()
Returns
Type Description
Chokepoint

clear()

public Chokepoint.Builder clear()
Returns
Type Description
Chokepoint.Builder
Overrides

clearRelatedFindings()

public Chokepoint.Builder clearRelatedFindings()

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Returns
Type Description
Chokepoint.Builder

This builder for chaining.

getDefaultInstanceForType()

public Chokepoint getDefaultInstanceForType()
Returns
Type Description
Chokepoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRelatedFindings(int index)

public String getRelatedFindings(int index)

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The relatedFindings at the given index.

getRelatedFindingsBytes(int index)

public ByteString getRelatedFindingsBytes(int index)

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the relatedFindings at the given index.

getRelatedFindingsCount()

public int getRelatedFindingsCount()

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Returns
Type Description
int

The count of relatedFindings.

getRelatedFindingsList()

public ProtocolStringList getRelatedFindingsList()

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Returns
Type Description
ProtocolStringList

A list containing the relatedFindings.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Chokepoint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setRelatedFindings(int index, String value)

public Chokepoint.Builder setRelatedFindings(int index, String value)

List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.

repeated string related_findings = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The relatedFindings to set.

Returns
Type Description
Chokepoint.Builder

This builder for chaining.