Class Kubernetes.Builder (2.55.0)

public static final class Kubernetes.Builder extends GeneratedMessageV3.Builder<Kubernetes.Builder> implements KubernetesOrBuilder

Kubernetes-related attributes.

Protobuf type google.cloud.securitycenter.v2.Kubernetes

Implements

KubernetesOrBuilder

Static Methods

getDescriptor()

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

Methods

addAccessReviews(Kubernetes.AccessReview value)

public Kubernetes.Builder addAccessReviews(Kubernetes.AccessReview value)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameter
Name Description
value Kubernetes.AccessReview
Returns
Type Description
Kubernetes.Builder

addAccessReviews(Kubernetes.AccessReview.Builder builderForValue)

public Kubernetes.Builder addAccessReviews(Kubernetes.AccessReview.Builder builderForValue)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameter
Name Description
builderForValue Kubernetes.AccessReview.Builder
Returns
Type Description
Kubernetes.Builder

addAccessReviews(int index, Kubernetes.AccessReview value)

public Kubernetes.Builder addAccessReviews(int index, Kubernetes.AccessReview value)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameters
Name Description
index int
value Kubernetes.AccessReview
Returns
Type Description
Kubernetes.Builder

addAccessReviews(int index, Kubernetes.AccessReview.Builder builderForValue)

public Kubernetes.Builder addAccessReviews(int index, Kubernetes.AccessReview.Builder builderForValue)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameters
Name Description
index int
builderForValue Kubernetes.AccessReview.Builder
Returns
Type Description
Kubernetes.Builder

addAccessReviewsBuilder()

public Kubernetes.AccessReview.Builder addAccessReviewsBuilder()

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Returns
Type Description
Kubernetes.AccessReview.Builder

addAccessReviewsBuilder(int index)

public Kubernetes.AccessReview.Builder addAccessReviewsBuilder(int index)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.AccessReview.Builder

addAllAccessReviews(Iterable<? extends Kubernetes.AccessReview> values)

public Kubernetes.Builder addAllAccessReviews(Iterable<? extends Kubernetes.AccessReview> values)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

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

addAllBindings(Iterable<? extends Kubernetes.Binding> values)

public Kubernetes.Builder addAllBindings(Iterable<? extends Kubernetes.Binding> values)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

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

addAllNodePools(Iterable<? extends Kubernetes.NodePool> values)

public Kubernetes.Builder addAllNodePools(Iterable<? extends Kubernetes.NodePool> values)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

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

addAllNodes(Iterable<? extends Kubernetes.Node> values)

public Kubernetes.Builder addAllNodes(Iterable<? extends Kubernetes.Node> values)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

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

addAllObjects(Iterable<? extends Kubernetes.Object> values)

public Kubernetes.Builder addAllObjects(Iterable<? extends Kubernetes.Object> values)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

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

addAllPods(Iterable<? extends Kubernetes.Pod> values)

public Kubernetes.Builder addAllPods(Iterable<? extends Kubernetes.Pod> values)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

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

addAllRoles(Iterable<? extends Kubernetes.Role> values)

public Kubernetes.Builder addAllRoles(Iterable<? extends Kubernetes.Role> values)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

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

addBindings(Kubernetes.Binding value)

public Kubernetes.Builder addBindings(Kubernetes.Binding value)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameter
Name Description
value Kubernetes.Binding
Returns
Type Description
Kubernetes.Builder

addBindings(Kubernetes.Binding.Builder builderForValue)

public Kubernetes.Builder addBindings(Kubernetes.Binding.Builder builderForValue)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameter
Name Description
builderForValue Kubernetes.Binding.Builder
Returns
Type Description
Kubernetes.Builder

addBindings(int index, Kubernetes.Binding value)

public Kubernetes.Builder addBindings(int index, Kubernetes.Binding value)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameters
Name Description
index int
value Kubernetes.Binding
Returns
Type Description
Kubernetes.Builder

addBindings(int index, Kubernetes.Binding.Builder builderForValue)

public Kubernetes.Builder addBindings(int index, Kubernetes.Binding.Builder builderForValue)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameters
Name Description
index int
builderForValue Kubernetes.Binding.Builder
Returns
Type Description
Kubernetes.Builder

addBindingsBuilder()

public Kubernetes.Binding.Builder addBindingsBuilder()

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Returns
Type Description
Kubernetes.Binding.Builder

addBindingsBuilder(int index)

public Kubernetes.Binding.Builder addBindingsBuilder(int index)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Binding.Builder

addNodePools(Kubernetes.NodePool value)

public Kubernetes.Builder addNodePools(Kubernetes.NodePool value)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameter
Name Description
value Kubernetes.NodePool
Returns
Type Description
Kubernetes.Builder

addNodePools(Kubernetes.NodePool.Builder builderForValue)

public Kubernetes.Builder addNodePools(Kubernetes.NodePool.Builder builderForValue)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameter
Name Description
builderForValue Kubernetes.NodePool.Builder
Returns
Type Description
Kubernetes.Builder

addNodePools(int index, Kubernetes.NodePool value)

public Kubernetes.Builder addNodePools(int index, Kubernetes.NodePool value)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameters
Name Description
index int
value Kubernetes.NodePool
Returns
Type Description
Kubernetes.Builder

addNodePools(int index, Kubernetes.NodePool.Builder builderForValue)

public Kubernetes.Builder addNodePools(int index, Kubernetes.NodePool.Builder builderForValue)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameters
Name Description
index int
builderForValue Kubernetes.NodePool.Builder
Returns
Type Description
Kubernetes.Builder

addNodePoolsBuilder()

public Kubernetes.NodePool.Builder addNodePoolsBuilder()

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Returns
Type Description
Kubernetes.NodePool.Builder

addNodePoolsBuilder(int index)

public Kubernetes.NodePool.Builder addNodePoolsBuilder(int index)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.NodePool.Builder

addNodes(Kubernetes.Node value)

public Kubernetes.Builder addNodes(Kubernetes.Node value)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
value Kubernetes.Node
Returns
Type Description
Kubernetes.Builder

addNodes(Kubernetes.Node.Builder builderForValue)

public Kubernetes.Builder addNodes(Kubernetes.Node.Builder builderForValue)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
builderForValue Kubernetes.Node.Builder
Returns
Type Description
Kubernetes.Builder

addNodes(int index, Kubernetes.Node value)

public Kubernetes.Builder addNodes(int index, Kubernetes.Node value)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
value Kubernetes.Node
Returns
Type Description
Kubernetes.Builder

addNodes(int index, Kubernetes.Node.Builder builderForValue)

public Kubernetes.Builder addNodes(int index, Kubernetes.Node.Builder builderForValue)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
builderForValue Kubernetes.Node.Builder
Returns
Type Description
Kubernetes.Builder

addNodesBuilder()

public Kubernetes.Node.Builder addNodesBuilder()

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
Kubernetes.Node.Builder

addNodesBuilder(int index)

public Kubernetes.Node.Builder addNodesBuilder(int index)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Node.Builder

addObjects(Kubernetes.Object value)

public Kubernetes.Builder addObjects(Kubernetes.Object value)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameter
Name Description
value Kubernetes.Object
Returns
Type Description
Kubernetes.Builder

addObjects(Kubernetes.Object.Builder builderForValue)

public Kubernetes.Builder addObjects(Kubernetes.Object.Builder builderForValue)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameter
Name Description
builderForValue Kubernetes.Object.Builder
Returns
Type Description
Kubernetes.Builder

addObjects(int index, Kubernetes.Object value)

public Kubernetes.Builder addObjects(int index, Kubernetes.Object value)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameters
Name Description
index int
value Kubernetes.Object
Returns
Type Description
Kubernetes.Builder

addObjects(int index, Kubernetes.Object.Builder builderForValue)

public Kubernetes.Builder addObjects(int index, Kubernetes.Object.Builder builderForValue)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameters
Name Description
index int
builderForValue Kubernetes.Object.Builder
Returns
Type Description
Kubernetes.Builder

addObjectsBuilder()

public Kubernetes.Object.Builder addObjectsBuilder()

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Returns
Type Description
Kubernetes.Object.Builder

addObjectsBuilder(int index)

public Kubernetes.Object.Builder addObjectsBuilder(int index)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Object.Builder

addPods(Kubernetes.Pod value)

public Kubernetes.Builder addPods(Kubernetes.Pod value)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameter
Name Description
value Kubernetes.Pod
Returns
Type Description
Kubernetes.Builder

addPods(Kubernetes.Pod.Builder builderForValue)

public Kubernetes.Builder addPods(Kubernetes.Pod.Builder builderForValue)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameter
Name Description
builderForValue Kubernetes.Pod.Builder
Returns
Type Description
Kubernetes.Builder

addPods(int index, Kubernetes.Pod value)

public Kubernetes.Builder addPods(int index, Kubernetes.Pod value)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameters
Name Description
index int
value Kubernetes.Pod
Returns
Type Description
Kubernetes.Builder

addPods(int index, Kubernetes.Pod.Builder builderForValue)

public Kubernetes.Builder addPods(int index, Kubernetes.Pod.Builder builderForValue)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameters
Name Description
index int
builderForValue Kubernetes.Pod.Builder
Returns
Type Description
Kubernetes.Builder

addPodsBuilder()

public Kubernetes.Pod.Builder addPodsBuilder()

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Returns
Type Description
Kubernetes.Pod.Builder

addPodsBuilder(int index)

public Kubernetes.Pod.Builder addPodsBuilder(int index)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Pod.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRoles(Kubernetes.Role value)

public Kubernetes.Builder addRoles(Kubernetes.Role value)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameter
Name Description
value Kubernetes.Role
Returns
Type Description
Kubernetes.Builder

addRoles(Kubernetes.Role.Builder builderForValue)

public Kubernetes.Builder addRoles(Kubernetes.Role.Builder builderForValue)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameter
Name Description
builderForValue Kubernetes.Role.Builder
Returns
Type Description
Kubernetes.Builder

addRoles(int index, Kubernetes.Role value)

public Kubernetes.Builder addRoles(int index, Kubernetes.Role value)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameters
Name Description
index int
value Kubernetes.Role
Returns
Type Description
Kubernetes.Builder

addRoles(int index, Kubernetes.Role.Builder builderForValue)

public Kubernetes.Builder addRoles(int index, Kubernetes.Role.Builder builderForValue)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameters
Name Description
index int
builderForValue Kubernetes.Role.Builder
Returns
Type Description
Kubernetes.Builder

addRolesBuilder()

public Kubernetes.Role.Builder addRolesBuilder()

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Returns
Type Description
Kubernetes.Role.Builder

addRolesBuilder(int index)

public Kubernetes.Role.Builder addRolesBuilder(int index)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Role.Builder

build()

public Kubernetes build()
Returns
Type Description
Kubernetes

buildPartial()

public Kubernetes buildPartial()
Returns
Type Description
Kubernetes

clear()

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

clearAccessReviews()

public Kubernetes.Builder clearAccessReviews()

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Returns
Type Description
Kubernetes.Builder

clearBindings()

public Kubernetes.Builder clearBindings()

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Returns
Type Description
Kubernetes.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNodePools()

public Kubernetes.Builder clearNodePools()

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Returns
Type Description
Kubernetes.Builder

clearNodes()

public Kubernetes.Builder clearNodes()

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
Kubernetes.Builder

clearObjects()

public Kubernetes.Builder clearObjects()

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Returns
Type Description
Kubernetes.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPods()

public Kubernetes.Builder clearPods()

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Returns
Type Description
Kubernetes.Builder

clearRoles()

public Kubernetes.Builder clearRoles()

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Returns
Type Description
Kubernetes.Builder

clone()

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

getAccessReviews(int index)

public Kubernetes.AccessReview getAccessReviews(int index)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.AccessReview

getAccessReviewsBuilder(int index)

public Kubernetes.AccessReview.Builder getAccessReviewsBuilder(int index)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.AccessReview.Builder

getAccessReviewsBuilderList()

public List<Kubernetes.AccessReview.Builder> getAccessReviewsBuilderList()

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Returns
Type Description
List<Builder>

getAccessReviewsCount()

public int getAccessReviewsCount()

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Returns
Type Description
int

getAccessReviewsList()

public List<Kubernetes.AccessReview> getAccessReviewsList()

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Returns
Type Description
List<AccessReview>

getAccessReviewsOrBuilder(int index)

public Kubernetes.AccessReviewOrBuilder getAccessReviewsOrBuilder(int index)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.AccessReviewOrBuilder

getAccessReviewsOrBuilderList()

public List<? extends Kubernetes.AccessReviewOrBuilder> getAccessReviewsOrBuilderList()

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.AccessReviewOrBuilder>

getBindings(int index)

public Kubernetes.Binding getBindings(int index)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Binding

getBindingsBuilder(int index)

public Kubernetes.Binding.Builder getBindingsBuilder(int index)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Binding.Builder

getBindingsBuilderList()

public List<Kubernetes.Binding.Builder> getBindingsBuilderList()

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Returns
Type Description
List<Builder>

getBindingsCount()

public int getBindingsCount()

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Returns
Type Description
int

getBindingsList()

public List<Kubernetes.Binding> getBindingsList()

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Returns
Type Description
List<Binding>

getBindingsOrBuilder(int index)

public Kubernetes.BindingOrBuilder getBindingsOrBuilder(int index)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.BindingOrBuilder

getBindingsOrBuilderList()

public List<? extends Kubernetes.BindingOrBuilder> getBindingsOrBuilderList()

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.BindingOrBuilder>

getDefaultInstanceForType()

public Kubernetes getDefaultInstanceForType()
Returns
Type Description
Kubernetes

getDescriptorForType()

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

getNodePools(int index)

public Kubernetes.NodePool getNodePools(int index)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.NodePool

getNodePoolsBuilder(int index)

public Kubernetes.NodePool.Builder getNodePoolsBuilder(int index)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.NodePool.Builder

getNodePoolsBuilderList()

public List<Kubernetes.NodePool.Builder> getNodePoolsBuilderList()

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Returns
Type Description
List<Builder>

getNodePoolsCount()

public int getNodePoolsCount()

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Returns
Type Description
int

getNodePoolsList()

public List<Kubernetes.NodePool> getNodePoolsList()

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Returns
Type Description
List<NodePool>

getNodePoolsOrBuilder(int index)

public Kubernetes.NodePoolOrBuilder getNodePoolsOrBuilder(int index)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.NodePoolOrBuilder

getNodePoolsOrBuilderList()

public List<? extends Kubernetes.NodePoolOrBuilder> getNodePoolsOrBuilderList()

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.NodePoolOrBuilder>

getNodes(int index)

public Kubernetes.Node getNodes(int index)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Node

getNodesBuilder(int index)

public Kubernetes.Node.Builder getNodesBuilder(int index)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Node.Builder

getNodesBuilderList()

public List<Kubernetes.Node.Builder> getNodesBuilderList()

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
List<Builder>

getNodesCount()

public int getNodesCount()

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
int

getNodesList()

public List<Kubernetes.Node> getNodesList()

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
List<Node>

getNodesOrBuilder(int index)

public Kubernetes.NodeOrBuilder getNodesOrBuilder(int index)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.NodeOrBuilder

getNodesOrBuilderList()

public List<? extends Kubernetes.NodeOrBuilder> getNodesOrBuilderList()

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.NodeOrBuilder>

getObjects(int index)

public Kubernetes.Object getObjects(int index)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Object

getObjectsBuilder(int index)

public Kubernetes.Object.Builder getObjectsBuilder(int index)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Object.Builder

getObjectsBuilderList()

public List<Kubernetes.Object.Builder> getObjectsBuilderList()

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Returns
Type Description
List<Builder>

getObjectsCount()

public int getObjectsCount()

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Returns
Type Description
int

getObjectsList()

public List<Kubernetes.Object> getObjectsList()

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Returns
Type Description
List<Object>

getObjectsOrBuilder(int index)

public Kubernetes.ObjectOrBuilder getObjectsOrBuilder(int index)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.ObjectOrBuilder

getObjectsOrBuilderList()

public List<? extends Kubernetes.ObjectOrBuilder> getObjectsOrBuilderList()

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.ObjectOrBuilder>

getPods(int index)

public Kubernetes.Pod getPods(int index)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Pod

getPodsBuilder(int index)

public Kubernetes.Pod.Builder getPodsBuilder(int index)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Pod.Builder

getPodsBuilderList()

public List<Kubernetes.Pod.Builder> getPodsBuilderList()

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Returns
Type Description
List<Builder>

getPodsCount()

public int getPodsCount()

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Returns
Type Description
int

getPodsList()

public List<Kubernetes.Pod> getPodsList()

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Returns
Type Description
List<Pod>

getPodsOrBuilder(int index)

public Kubernetes.PodOrBuilder getPodsOrBuilder(int index)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.PodOrBuilder

getPodsOrBuilderList()

public List<? extends Kubernetes.PodOrBuilder> getPodsOrBuilderList()

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.PodOrBuilder>

getRoles(int index)

public Kubernetes.Role getRoles(int index)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Role

getRolesBuilder(int index)

public Kubernetes.Role.Builder getRolesBuilder(int index)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Role.Builder

getRolesBuilderList()

public List<Kubernetes.Role.Builder> getRolesBuilderList()

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Returns
Type Description
List<Builder>

getRolesCount()

public int getRolesCount()

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Returns
Type Description
int

getRolesList()

public List<Kubernetes.Role> getRolesList()

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Returns
Type Description
List<Role>

getRolesOrBuilder(int index)

public Kubernetes.RoleOrBuilder getRolesOrBuilder(int index)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.RoleOrBuilder

getRolesOrBuilderList()

public List<? extends Kubernetes.RoleOrBuilder> getRolesOrBuilderList()

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.RoleOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Kubernetes other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAccessReviews(int index)

public Kubernetes.Builder removeAccessReviews(int index)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Builder

removeBindings(int index)

public Kubernetes.Builder removeBindings(int index)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Builder

removeNodePools(int index)

public Kubernetes.Builder removeNodePools(int index)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Builder

removeNodes(int index)

public Kubernetes.Builder removeNodes(int index)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Builder

removeObjects(int index)

public Kubernetes.Builder removeObjects(int index)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Builder

removePods(int index)

public Kubernetes.Builder removePods(int index)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Builder

removeRoles(int index)

public Kubernetes.Builder removeRoles(int index)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Builder

setAccessReviews(int index, Kubernetes.AccessReview value)

public Kubernetes.Builder setAccessReviews(int index, Kubernetes.AccessReview value)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameters
Name Description
index int
value Kubernetes.AccessReview
Returns
Type Description
Kubernetes.Builder

setAccessReviews(int index, Kubernetes.AccessReview.Builder builderForValue)

public Kubernetes.Builder setAccessReviews(int index, Kubernetes.AccessReview.Builder builderForValue)

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.AccessReview access_reviews = 6;

Parameters
Name Description
index int
builderForValue Kubernetes.AccessReview.Builder
Returns
Type Description
Kubernetes.Builder

setBindings(int index, Kubernetes.Binding value)

public Kubernetes.Builder setBindings(int index, Kubernetes.Binding value)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameters
Name Description
index int
value Kubernetes.Binding
Returns
Type Description
Kubernetes.Builder

setBindings(int index, Kubernetes.Binding.Builder builderForValue)

public Kubernetes.Builder setBindings(int index, Kubernetes.Binding.Builder builderForValue)

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings.

repeated .google.cloud.securitycenter.v2.Kubernetes.Binding bindings = 5;

Parameters
Name Description
index int
builderForValue Kubernetes.Binding.Builder
Returns
Type Description
Kubernetes.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNodePools(int index, Kubernetes.NodePool value)

public Kubernetes.Builder setNodePools(int index, Kubernetes.NodePool value)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameters
Name Description
index int
value Kubernetes.NodePool
Returns
Type Description
Kubernetes.Builder

setNodePools(int index, Kubernetes.NodePool.Builder builderForValue)

public Kubernetes.Builder setNodePools(int index, Kubernetes.NodePool.Builder builderForValue)

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available.

repeated .google.cloud.securitycenter.v2.Kubernetes.NodePool node_pools = 3;

Parameters
Name Description
index int
builderForValue Kubernetes.NodePool.Builder
Returns
Type Description
Kubernetes.Builder

setNodes(int index, Kubernetes.Node value)

public Kubernetes.Builder setNodes(int index, Kubernetes.Node value)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
value Kubernetes.Node
Returns
Type Description
Kubernetes.Builder

setNodes(int index, Kubernetes.Node.Builder builderForValue)

public Kubernetes.Builder setNodes(int index, Kubernetes.Node.Builder builderForValue)

Provides Kubernetes node information.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
builderForValue Kubernetes.Node.Builder
Returns
Type Description
Kubernetes.Builder

setObjects(int index, Kubernetes.Object value)

public Kubernetes.Builder setObjects(int index, Kubernetes.Object value)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameters
Name Description
index int
value Kubernetes.Object
Returns
Type Description
Kubernetes.Builder

setObjects(int index, Kubernetes.Object.Builder builderForValue)

public Kubernetes.Builder setObjects(int index, Kubernetes.Object.Builder builderForValue)

Kubernetes objects related to the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Object objects = 7;

Parameters
Name Description
index int
builderForValue Kubernetes.Object.Builder
Returns
Type Description
Kubernetes.Builder

setPods(int index, Kubernetes.Pod value)

public Kubernetes.Builder setPods(int index, Kubernetes.Pod value)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameters
Name Description
index int
value Kubernetes.Pod
Returns
Type Description
Kubernetes.Builder

setPods(int index, Kubernetes.Pod.Builder builderForValue)

public Kubernetes.Builder setPods(int index, Kubernetes.Pod.Builder builderForValue)

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod.

repeated .google.cloud.securitycenter.v2.Kubernetes.Pod pods = 1;

Parameters
Name Description
index int
builderForValue Kubernetes.Pod.Builder
Returns
Type Description
Kubernetes.Builder

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

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

setRoles(int index, Kubernetes.Role value)

public Kubernetes.Builder setRoles(int index, Kubernetes.Role value)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameters
Name Description
index int
value Kubernetes.Role
Returns
Type Description
Kubernetes.Builder

setRoles(int index, Kubernetes.Role.Builder builderForValue)

public Kubernetes.Builder setRoles(int index, Kubernetes.Role.Builder builderForValue)

Provides Kubernetes role information for findings that involve Roles or ClusterRoles.

repeated .google.cloud.securitycenter.v2.Kubernetes.Role roles = 4;

Parameters
Name Description
index int
builderForValue Kubernetes.Role.Builder
Returns
Type Description
Kubernetes.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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