Class AttackPath.AttackPathNode.AttackStepNode.Builder (2.45.0)

public static final class AttackPath.AttackPathNode.AttackStepNode.Builder extends GeneratedMessageV3.Builder<AttackPath.AttackPathNode.AttackStepNode.Builder> implements AttackPath.AttackPathNode.AttackStepNodeOrBuilder

Detailed steps the attack can take between path nodes.

Protobuf type google.cloud.securitycenter.v2.AttackPath.AttackPathNode.AttackStepNode

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttackPath.AttackPathNode.AttackStepNode build()
Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode

buildPartial()

public AttackPath.AttackPathNode.AttackStepNode buildPartial()
Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode

clear()

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

clearDescription()

public AttackPath.AttackPathNode.AttackStepNode.Builder clearDescription()

Attack step description

string description = 5;

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

clearDisplayName()

public AttackPath.AttackPathNode.AttackStepNode.Builder clearDisplayName()

User friendly name of the attack step

string display_name = 3;

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public AttackPath.AttackPathNode.AttackStepNode.Builder clearLabels()
Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public AttackPath.AttackPathNode.AttackStepNode.Builder clearType()

Attack step type. Can be either AND, OR or DEFENSE

.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

clearUuid()

public AttackPath.AttackPathNode.AttackStepNode.Builder clearUuid()

Unique ID for one Node

string uuid = 1;

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Attack step labels for metadata

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public AttackPath.AttackPathNode.AttackStepNode getDefaultInstanceForType()
Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode

getDescription()

public String getDescription()

Attack step description

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Attack step description

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User friendly name of the attack step

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User friendly name of the attack step

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Attack step labels for metadata

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Attack step labels for metadata

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Attack step labels for metadata

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Attack step labels for metadata

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getType()

public AttackPath.AttackPathNode.NodeType getType()

Attack step type. Can be either AND, OR or DEFENSE

.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;

Returns
TypeDescription
AttackPath.AttackPathNode.NodeType

The type.

getTypeValue()

public int getTypeValue()

Attack step type. Can be either AND, OR or DEFENSE

.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUuid()

public String getUuid()

Unique ID for one Node

string uuid = 1;

Returns
TypeDescription
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Unique ID for one Node

string uuid = 1;

Returns
TypeDescription
ByteString

The bytes for uuid.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttackPath.AttackPathNode.AttackStepNode other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public AttackPath.AttackPathNode.AttackStepNode.Builder putAllLabels(Map<String,String> values)

Attack step labels for metadata

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

putLabels(String key, String value)

public AttackPath.AttackPathNode.AttackStepNode.Builder putLabels(String key, String value)

Attack step labels for metadata

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

removeLabels(String key)

public AttackPath.AttackPathNode.AttackStepNode.Builder removeLabels(String key)

Attack step labels for metadata

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

setDescription(String value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setDescription(String value)

Attack step description

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setDescriptionBytes(ByteString value)

Attack step description

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

setDisplayName(String value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setDisplayName(String value)

User friendly name of the attack step

string display_name = 3;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setDisplayNameBytes(ByteString value)

User friendly name of the attack step

string display_name = 3;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setType(AttackPath.AttackPathNode.NodeType value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setType(AttackPath.AttackPathNode.NodeType value)

Attack step type. Can be either AND, OR or DEFENSE

.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;

Parameter
NameDescription
valueAttackPath.AttackPathNode.NodeType

The type to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

setTypeValue(int value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setTypeValue(int value)

Attack step type. Can be either AND, OR or DEFENSE

.google.cloud.securitycenter.v2.AttackPath.AttackPathNode.NodeType type = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUuid(String value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setUuid(String value)

Unique ID for one Node

string uuid = 1;

Parameter
NameDescription
valueString

The uuid to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public AttackPath.AttackPathNode.AttackStepNode.Builder setUuidBytes(ByteString value)

Unique ID for one Node

string uuid = 1;

Parameter
NameDescription
valueByteString

The bytes for uuid to set.

Returns
TypeDescription
AttackPath.AttackPathNode.AttackStepNode.Builder

This builder for chaining.