Class Kubernetes (2.49.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
TypeDescription
int

BINDINGS_FIELD_NUMBER

public static final int BINDINGS_FIELD_NUMBER
Field Value
TypeDescription
int

NODES_FIELD_NUMBER

public static final int NODES_FIELD_NUMBER
Field Value
TypeDescription
int

NODE_POOLS_FIELD_NUMBER

public static final int NODE_POOLS_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECTS_FIELD_NUMBER

public static final int OBJECTS_FIELD_NUMBER
Field Value
TypeDescription
int

PODS_FIELD_NUMBER

public static final int PODS_FIELD_NUMBER
Field Value
TypeDescription
int

ROLES_FIELD_NUMBER

public static final int ROLES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Kubernetes getDefaultInstance()
Returns
TypeDescription
Kubernetes

getDescriptor()

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

newBuilder()

public static Kubernetes.Builder newBuilder()
Returns
TypeDescription
Kubernetes.Builder

newBuilder(Kubernetes prototype)

public static Kubernetes.Builder newBuilder(Kubernetes prototype)
Parameter
NameDescription
prototypeKubernetes
Returns
TypeDescription
Kubernetes.Builder

parseDelimitedFrom(InputStream input)

public static Kubernetes parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Kubernetes parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Kubernetes parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Kubernetes parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Kubernetes parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Kubernetes parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Kubernetes> parser()
Returns
TypeDescription
Parser<Kubernetes>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.BindingOrBuilder>

getDefaultInstanceForType()

public Kubernetes getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Node

getNodesCount()

public int getNodesCount()

Provides Kubernetes node information.

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

Returns
TypeDescription
int

getNodesList()

public List<Kubernetes.Node> getNodesList()

Provides Kubernetes node information.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Kubernetes.NodeOrBuilder

getNodesOrBuilderList()

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

Provides Kubernetes node information.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Object

getObjectsCount()

public int getObjectsCount()

Kubernetes objects related to the finding.

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

Returns
TypeDescription
int

getObjectsList()

public List<Kubernetes.Object> getObjectsList()

Kubernetes objects related to the finding.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.ObjectOrBuilder>

getParserForType()

public Parser<Kubernetes> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.securitycenter.v2.Kubernetes.RoleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Kubernetes.Builder newBuilderForType()
Returns
TypeDescription
Kubernetes.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Kubernetes.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Kubernetes.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Kubernetes.Builder toBuilder()
Returns
TypeDescription
Kubernetes.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException