Class Kubernetes.Object (2.60.0)

public static final class Kubernetes.Object extends GeneratedMessageV3 implements Kubernetes.ObjectOrBuilder

Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.

Protobuf type google.cloud.securitycenter.v2.Kubernetes.Object

Static Fields

CONTAINERS_FIELD_NUMBER

public static final int CONTAINERS_FIELD_NUMBER
Field Value
Type Description
int

GROUP_FIELD_NUMBER

public static final int GROUP_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NS_FIELD_NUMBER

public static final int NS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Kubernetes.Object getDefaultInstance()
Returns
Type Description
Kubernetes.Object

getDescriptor()

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

newBuilder()

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

newBuilder(Kubernetes.Object prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContainers(int index)

public Container getContainers(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Parameter
Name Description
index int
Returns
Type Description
Container

getContainersCount()

public int getContainersCount()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Returns
Type Description
int

getContainersList()

public List<Container> getContainersList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Returns
Type Description
List<Container>

getContainersOrBuilder(int index)

public ContainerOrBuilder getContainersOrBuilder(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

Parameter
Name Description
index int
Returns
Type Description
ContainerOrBuilder

getContainersOrBuilderList()

public List<? extends ContainerOrBuilder> getContainersOrBuilderList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 5;

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

getDefaultInstanceForType()

public Kubernetes.Object getDefaultInstanceForType()
Returns
Type Description
Kubernetes.Object

getGroup()

public String getGroup()

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Returns
Type Description
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Returns
Type Description
ByteString

The bytes for group.

getKind()

public String getKind()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Returns
Type Description
ByteString

The bytes for name.

getNs()

public String getNs()

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Returns
Type Description
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Returns
Type Description
ByteString

The bytes for ns.

getParserForType()

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

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.Object.Builder newBuilderForType()
Returns
Type Description
Kubernetes.Object.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Kubernetes.Object.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Kubernetes.Object.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.Object.Builder toBuilder()
Returns
Type Description
Kubernetes.Object.Builder

writeTo(CodedOutputStream output)

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