Class ResourcePath.Builder (2.56.0)

public static final class ResourcePath.Builder extends GeneratedMessageV3.Builder<ResourcePath.Builder> implements ResourcePathOrBuilder

Represents the path of resources leading up to the resource this finding is about.

Protobuf type google.cloud.securitycenter.v2.ResourcePath

Static Methods

getDescriptor()

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

Methods

addAllNodes(Iterable<? extends ResourcePath.ResourcePathNode> values)

public ResourcePath.Builder addAllNodes(Iterable<? extends ResourcePath.ResourcePathNode> values)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode>
Returns
Type Description
ResourcePath.Builder

addNodes(ResourcePath.ResourcePathNode value)

public ResourcePath.Builder addNodes(ResourcePath.ResourcePathNode value)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
value ResourcePath.ResourcePathNode
Returns
Type Description
ResourcePath.Builder

addNodes(ResourcePath.ResourcePathNode.Builder builderForValue)

public ResourcePath.Builder addNodes(ResourcePath.ResourcePathNode.Builder builderForValue)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
builderForValue ResourcePath.ResourcePathNode.Builder
Returns
Type Description
ResourcePath.Builder

addNodes(int index, ResourcePath.ResourcePathNode value)

public ResourcePath.Builder addNodes(int index, ResourcePath.ResourcePathNode value)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameters
Name Description
index int
value ResourcePath.ResourcePathNode
Returns
Type Description
ResourcePath.Builder

addNodes(int index, ResourcePath.ResourcePathNode.Builder builderForValue)

public ResourcePath.Builder addNodes(int index, ResourcePath.ResourcePathNode.Builder builderForValue)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameters
Name Description
index int
builderForValue ResourcePath.ResourcePathNode.Builder
Returns
Type Description
ResourcePath.Builder

addNodesBuilder()

public ResourcePath.ResourcePathNode.Builder addNodesBuilder()

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Returns
Type Description
ResourcePath.ResourcePathNode.Builder

addNodesBuilder(int index)

public ResourcePath.ResourcePathNode.Builder addNodesBuilder(int index)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourcePath.ResourcePathNode.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourcePath build()
Returns
Type Description
ResourcePath

buildPartial()

public ResourcePath buildPartial()
Returns
Type Description
ResourcePath

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNodes()

public ResourcePath.Builder clearNodes()

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Returns
Type Description
ResourcePath.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourcePath.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourcePath.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public ResourcePath getDefaultInstanceForType()
Returns
Type Description
ResourcePath

getDescriptorForType()

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

getNodes(int index)

public ResourcePath.ResourcePathNode getNodes(int index)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourcePath.ResourcePathNode

getNodesBuilder(int index)

public ResourcePath.ResourcePathNode.Builder getNodesBuilder(int index)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourcePath.ResourcePathNode.Builder

getNodesBuilderList()

public List<ResourcePath.ResourcePathNode.Builder> getNodesBuilderList()

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Returns
Type Description
List<Builder>

getNodesCount()

public int getNodesCount()

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Returns
Type Description
int

getNodesList()

public List<ResourcePath.ResourcePathNode> getNodesList()

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Returns
Type Description
List<ResourcePathNode>

getNodesOrBuilder(int index)

public ResourcePath.ResourcePathNodeOrBuilder getNodesOrBuilder(int index)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourcePath.ResourcePathNodeOrBuilder

getNodesOrBuilderList()

public List<? extends ResourcePath.ResourcePathNodeOrBuilder> getNodesOrBuilderList()

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.ResourcePath.ResourcePathNodeOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourcePath other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNodes(int index)

public ResourcePath.Builder removeNodes(int index)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourcePath.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNodes(int index, ResourcePath.ResourcePathNode value)

public ResourcePath.Builder setNodes(int index, ResourcePath.ResourcePathNode value)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameters
Name Description
index int
value ResourcePath.ResourcePathNode
Returns
Type Description
ResourcePath.Builder

setNodes(int index, ResourcePath.ResourcePathNode.Builder builderForValue)

public ResourcePath.Builder setNodes(int index, ResourcePath.ResourcePathNode.Builder builderForValue)

The list of nodes that make the up resource path, ordered from lowest level to highest level.

repeated .google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode nodes = 1;

Parameters
Name Description
index int
builderForValue ResourcePath.ResourcePathNode.Builder
Returns
Type Description
ResourcePath.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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