Class Chokepoint.Builder (2.76.0)

public static final class Chokepoint.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public Chokepoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Chokepoint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Chokepoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Chokepoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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