Class Kubernetes (2.57.0)

public final class Kubernetes extends GeneratedMessageV3 implements KubernetesOrBuilder

Kubernetes-related attributes.

Protobuf type google.cloud.securitycenter.v2.Kubernetes

Implements

KubernetesOrBuilder

Static Fields

ACCESS_REVIEWS_FIELD_NUMBER

public static final int ACCESS_REVIEWS_FIELD_NUMBER
Field Value
Type Description
int

BINDINGS_FIELD_NUMBER

public static final int BINDINGS_FIELD_NUMBER
Field Value
Type Description
int

NODES_FIELD_NUMBER

public static final int NODES_FIELD_NUMBER
Field Value
Type Description
int

NODE_POOLS_FIELD_NUMBER

public static final int NODE_POOLS_FIELD_NUMBER
Field Value
Type Description
int

OBJECTS_FIELD_NUMBER

public static final int OBJECTS_FIELD_NUMBER
Field Value
Type Description
int

PODS_FIELD_NUMBER

public static final int PODS_FIELD_NUMBER
Field Value
Type Description
int

ROLES_FIELD_NUMBER

public static final int ROLES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Kubernetes getDefaultInstance()
Returns
Type Description
Kubernetes

getDescriptor()

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

newBuilder()

public static Kubernetes.Builder newBuilder()
Returns
Type Description
Kubernetes.Builder

newBuilder(Kubernetes prototype)

public static Kubernetes.Builder newBuilder(Kubernetes prototype)
Parameter
Name Description
prototype Kubernetes
Returns
Type Description
Kubernetes.Builder

parseDelimitedFrom(InputStream input)

public static Kubernetes parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Kubernetes
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Kubernetes
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Kubernetes parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Kubernetes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Kubernetes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Kubernetes parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Kubernetes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Kubernetes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Kubernetes parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Kubernetes
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Kubernetes
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Kubernetes parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Kubernetes
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Kubernetes
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Kubernetes parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Kubernetes
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Kubernetes
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Kubernetes> parser()
Returns
Type Description
Parser<Kubernetes>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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

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

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

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

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>

getParserForType()

public Parser<Kubernetes> getParserForType()
Returns
Type Description
Parser<Kubernetes>
Overrides

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

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Kubernetes.Builder newBuilderForType()
Returns
Type Description
Kubernetes.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Kubernetes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Kubernetes.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Kubernetes.Builder toBuilder()
Returns
Type Description
Kubernetes.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException